Hello,

First you must give a name to your components to be able to retrieve it:
<span jwcid="[EMAIL PROTECTED]" value="ognl:myText"></span>
then in the java:
getComponents("test").getName();
or in the html:
the name of my component is <span jwcid="@InsertText" value="ognl:components.test.name">Test name</span>

It works the same for any tapestry components, TextField etc...

<input type="text" jwcid="[EMAIL PROTECTED]" value="ognl:testFieldValue"/>
then in the java:
getComponents("test").getName();
or in the html:
the name of my component is <span jwcid="@InsertText" value="ognl:components.test.name">Test name</span>

Bye
Numa

Le 16 janv. 06 à 14:45, Fabiano Choueiri a écrit :


        Hi all.

        I made a component that consists in two validfields ( month and
year ) and they are working fine.
        What I want is that when the first input text (Month) is
completely filled the focus goes to the
        next field (Year).  I tried a simple javascript but when
Tapestry renders the input texts I dont know  the names generated to
that input text and I need the name to make the javascript.

        How can I get the name of the input text and other html elemenst
generated by Tapestry ?
        
        

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




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

Reply via email to