What do you mean by "cannot get their values"? I am wondering if the model's value is not showing in the TextField when it become visible or if the model's value is not getting set based on what you type into the TextField. If your problem is that the value you type into the TextField is not getting to the model, check to make sure the Form that the TextField is in is reaching the Form's onSubmit method when you submit the form. Wicket does not push the TextField value to the model until it has checked for required fields, converted the input, and validated the converted input. If you can copy in the related code to this thread, that may help.

-Jered

On 1/20/2010 5:14 PM, smallufo wrote:
To make it more clear :
When the radio button is clicked , by implement AjaxEventBehavior("onClick")

, a default-invisible WebMarkupContainer is set visible ,
The WebMarkupContainer  contains other TextFields , which I cannot get their
values at all ....
I've stuck with this problems for half day , searching but found no anwser
...
I need help....

Wicket 1.4.5


2010/1/21 smallufo<small...@gmail.com>

I have a form , which contains a radio button.
When user clicks the radio button , a default-invisible textfield is set
visible.
But I cannot get the textfield's Model Object , it is null ....

What's the problem ? Did I miss anything ?


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

Reply via email to