I  found it a awkward that Tapestry uses only name in form components
especially as I am trying to make everything I do standards compliant.
For the html id  (in input elements) I mirror the value of the name
parameter, as xhtml is leaning towards replacing names with ids.
To do this in tapestry rather than use the jwcid (as its differnt from
the name) I do this something like...

<input jwcid="datefield" type="text"
id="ognl:components.datefield.getProperty('name')" class="date" />



On 5/10/05, Scott Morgan <[EMAIL PROTECTED]> wrote:
> Is there a simple way to have the HTML id for a form component be the
> same as the jwcid?
> 
> I know I can bind an ID to a value, but how can I get the jwcid in the
> page specification so I don't have to worry if the jwcid changes?
> Something like <binding name="id" expression="root.id"/>?
> 
> thanks
> scott
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"If we can hit that bull's-eye, the rest of the dominos will fall like
a house of cards - Checkmate."

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to