You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Marco Gattei <ma...@gmail.com> on 2010/02/24 11:39:33 UTC

Form Field

Hi every one,

is it posible to programatically get the id a form field would have once 
the form r will be rendered as HTML ?
its always form.getName()+"_"+ field.getName() ?

Marco

Re: Form Field

Posted by Marco Gattei <ma...@gmail.com>.
Perfect !
Marco
Joseph Schmidt ha scritto:
>
>> is it posible to programatically get the id a form field would have once
>> the form r will be rendered as HTML ?
>> its always form.getName()+"_"+ field.getName() ?
> Isn't getId() working for you?
>
> http://click.apache.org/docs/click-api/org/apache/click/control/Field.html#getId() 
>
>
> I believe that all Click Controls that are written correctly should 
> return getId() correctly too.
>
> Joseph.
>
>


Re: Form Field

Posted by Joseph Schmidt <jo...@yahoo.com>.
> is it posible to programatically get the id a form field would have once
> the form r will be rendered as HTML ?
> its always form.getName()+"_"+ field.getName() ?
Isn't getId() working for you?

http://click.apache.org/docs/click-api/org/apache/click/control/Field.html#getId()

I believe that all Click Controls that are written correctly should 
return getId() correctly too.

Joseph.