Re: [T5] Colons in element ids?

2008-04-24 Thread Julian Wood
Of course, IE7 doesn't recognize that escape character - I would imagine IE6 is the same - and so totally ignores the css rule. :-( J On Apr 22, 2008, at 2:05 PM, Julian Wood wrote: Sweet! That is a good solution. J On Apr 22, 2008, at 1:57 PM, Jason Lea wrote: or you could try looking

[T5] Colons in element ids?

2008-04-22 Thread Julian Wood
5.0.12-SNAP If I make a form and put a form label combo in it: form t:type=Form div label t:type=Label t:for=username / input t:type=TextField t:id=username type=text maxlength=15/ /div /form It is rendered out like this: label for=username id=username:labelUsername:/label input

Re: [T5] Colons in element ids?

2008-04-22 Thread Peter Beshai
You could just give the label an id or a class: form t:type=Form div label t:type=Label t:for=username id=username-label / input t:type=TextField t:id=username type=text maxlength=15/ /div /form and use #username-label or form t:type=Form div label t:type=Label t:for=username

Re: [T5] Colons in element ids?

2008-04-22 Thread Howard Lewis Ship
That is a valid point. At the core of this issue is the way Tapestry is responsible for doling out *unique* ids to elements of the page, as the page is rendered. This is necessary because you may have nested components that end up with conflicting ids very easily. The convention of appending a

Re: [T5] Colons in element ids?

2008-04-22 Thread Julian Wood
https://issues.apache.org/jira/browse/TAPESTRY-2377 I checked a bunch of alternatives, and I think the best option is one or more hyphens. Every other char I tried either has a purpose or is ignored. J On Apr 22, 2008, at 11:42 AM, Howard Lewis Ship wrote: That is a valid point. At the

Re: [T5] Colons in element ids?

2008-04-22 Thread Andreas Andreou
AFAIK, jsf uses colons On Tue, Apr 22, 2008 at 10:17 PM, Julian Wood [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/TAPESTRY-2377 I checked a bunch of alternatives, and I think the best option is one or more hyphens. Every other char I tried either has a purpose or is

Re: [T5] Colons in element ids?

2008-04-22 Thread Jason Lea
or you could try looking at the css spec... http://www.w3.org/TR/CSS21/syndata.html#escaped-characters and use the escape character \ :) example: html head style type=text/css #foo\:bar { color: red;} /style /head body p id=foo:barfubar/p /body /html Julian Wood wrote: 5.0.12-SNAP If I

Re: [T5] Colons in element ids?

2008-04-22 Thread Julian Wood
Sweet! That is a good solution. J On Apr 22, 2008, at 1:57 PM, Jason Lea wrote: or you could try looking at the css spec... http://www.w3.org/TR/CSS21/syndata.html#escaped-characters and use the escape character \ :) example: html head style type=text/css #foo\:bar { color: red;} /style