You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michal Hybler <m....@email.cz> on 2009/04/01 17:13:15 UTC

Re: DatePicker, TextField and AjaxEventBehavior

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DatePicker, TextField and AjaxEventBehavior

Posted by Caisi <za...@gmail.com>.
Hi I am having the same problem as you had. I've changed DateField to
DateTextField but I have still the original value. Please help.

Caisi



Michal Hybler wrote:
> 
> 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-tp22738598p22930480.html
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