Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2013-01-11 Thread dpmihai
As the bug link states you have to create date object by yourself. It's ugly as a witch I know. But for wicket 1.5 I had no other solution. I do not know how DateField and DateTimeField perform in wicket 1.6. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2013-01-10 Thread dmalescot
Any suggestion ? I have the same problem. When i update my datefield with this behavior, my date is null. Thanks, Damien -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4655258.html Sent from

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-17 Thread dpmihai
I saw that the resolution for this bug(https://issues.apache.org/jira/browse/WICKET-4496) is "Not a problem" using getDefaultModelObject(). But it remains a question. If I have a DatetimeField and I want an AjaxFormComponentUpdatingBehavior so that if I click the button, or if I change the hours o

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
Here is the link https://issues.apache.org/jira/browse/WICKET-4496 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554218.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Martin Grigorov
Create a quickstart app and attach it to Jira. Thanks! On Fri, Apr 13, 2012 at 11:35 AM, dpmihai wrote: > For a DateField and a DateTimeField in the onUpdate method for an > AjaxFormComponentUpdatingBehavior , the model is never updated, it rests > with the initial date selection. > > -- > View t

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Martin Grigorov
Create a quickstart app and attach it to Jira. Thanks! On Fri, Apr 13, 2012 at 11:35 AM, dpmihai wrote: > For a DateField and a DateTimeField in the onUpdate method for an > AjaxFormComponentUpdatingBehavior , the model is never updated, it rests > with the initial date selection. > > -- > View t

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
For a DateField and a DateTimeField in the onUpdate method for an AjaxFormComponentUpdatingBehavior , the model is never updated, it rests with the initial date selection. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-i

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Martin Grigorov
On Fri, Apr 13, 2012 at 11:26 AM, dpmihai wrote: > This workaround works. But it seems DateField and DateTimeField are buggy in > Wicket 1.5.5. Can you explain the bug ? > > So the only solution for now is to create my new components DateField and > DateTimeField. > > -- > View this message in c

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
This workaround works. But it seems DateField and DateTimeField are buggy in Wicket 1.5.5. So the only solution for now is to create my new components DateField and DateTimeField. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingB

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread Francois Meillet
try this public TestForm(String form, final IModel dateModel) { super(form, dateModel); DateTextField dateTextField = new DateTextField("txtDate", dateModel, new StrictPatternDateConverter("dd/MM/", false)); DatePicker datePicker = new DatePicker();

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.DateField; import org.apache.wicket.markup

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
The class I put here was the full code: import java.util.Date; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.datetime.markup.html.form.DateTextField; import org.apache.wicket.extensions.yui.calendar.D

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread Francois Meillet
Show me your code. full file class. Le 12 avr. 2012 à 16:41, dpmihai a écrit : > It does not matter. Your code (DateTextField instead DateField) does not work > either in Wicket 1.5.5 It prints just the current date no matter what date I > choose. > > -- > View this message in context: > http:

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
It does not matter. Your code (DateTextField instead DateField) does not work either in Wicket 1.5.5 It prints just the current date no matter what date I choose. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket

Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread Francois Meillet
Hi, Should be better with a form private IModel date; public Test() { super(); add(new TestForm("form", date = new Model(new Date(; } private class TestForm extends Form { public TestForm(String form, final IModel dateModel) { super(form, dateMod

DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
I created a simple page with a DateField and an AjaxFormComponentUpdatingBehavior where I want to read the model. The following code does work in Wicket 1.4.16 (prints the selected date), but does not in Wicket 1.5.5 (prints null): public class DatePage extends WebPage { private D