You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by andrea pantaleoni <an...@fao.org> on 2007/08/14 23:15:52 UTC

TextField onclick ajax

Hi,
In a Page I have a TextField component and few DropDownChoice inside a form.
When I add a behaviour to the DropDownChoice I can read the value the user
selected and change consequently the other page component.
Instead when I try to add a ajax behavior to a button for reading  the
textfield value I get always null.
It seems that the framework load the textfield model just when the page
submit in fact when the page submit i can read the value of the textfield.
I that true?
there some workaround
any help?
Thanks 

-- 
View this message in context: http://www.nabble.com/TextField-onclick-ajax-tf4269741.html#a12152307
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: TextField onclick ajax

Posted by andrea pantaleoni <an...@fao.org>.
Exactly what I do.
thanks



Gerolf Seitz wrote:
> 
> to submit the form via ajax, you should use AjaxFormSubmitBehavior.
> 
>   gerolf
> 
> On 8/14/07, andrea pantaleoni <an...@fao.org> wrote:
>>
>>
>> Hi,
>> In a Page I have a TextField component and few DropDownChoice inside a
>> form.
>> When I add a behaviour to the DropDownChoice I can read the value the
>> user
>> selected and change consequently the other page component.
>> Instead when I try to add a ajax behavior to a button for reading  the
>> textfield value I get always null.
>> It seems that the framework load the textfield model just when the page
>> submit in fact when the page submit i can read the value of the
>> textfield.
>> I that true?
>> there some workaround
>> any help?
>> Thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/TextField-onclick-ajax-tf4269741.html#a12152307
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/TextField-onclick-ajax-tf4269741.html#a12160868
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: TextField onclick ajax

Posted by Gerolf Seitz <ge...@gmail.com>.
to submit the form via ajax, you should use AjaxFormSubmitBehavior.

  gerolf

On 8/14/07, andrea pantaleoni <an...@fao.org> wrote:
>
>
> Hi,
> In a Page I have a TextField component and few DropDownChoice inside a
> form.
> When I add a behaviour to the DropDownChoice I can read the value the user
> selected and change consequently the other page component.
> Instead when I try to add a ajax behavior to a button for reading  the
> textfield value I get always null.
> It seems that the framework load the textfield model just when the page
> submit in fact when the page submit i can read the value of the textfield.
> I that true?
> there some workaround
> any help?
> Thanks
>
> --
> View this message in context:
> http://www.nabble.com/TextField-onclick-ajax-tf4269741.html#a12152307
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>