If someone have same problem I have solved that by using DateTextField
instead of DateField from wicket extension.
M.

Michal Hybler wrote:
> 
> Hi,
> i have problem with using datepicker in wicket. I have TextField and
> DatePicker attached to it.
> 
> final TextField dateFieldfrom = new TextField("validityFrom",
>                                       new 
> Model(userClassification.getValidity().getValidFrom()));
>                       dateFieldfrom.add(new DatePicker());
>                       dateFieldfrom.add(new 
> DateFieldBehaviour(DateFieldBehaviour.FROM,
>                                       userClassification));
> If value of textField is changed it invokes onEvent method. Its good.
> Now I need to get value from textField with selected date. I have tried
> getValue(), getModelObject() etc. Everything returns original value. New
> value is displayed correctly but i cant get it from textField.
> Any ideas?
> 
> Thx for your help.
> With regards Michal
> 

-- 
View this message in context: 
http://www.nabble.com/DatePicker%2C-TextField-and-AjaxEventBehavior-tp22738598p22828791.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to