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
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
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
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.
---
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
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
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
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
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
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();
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
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
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:
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
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
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
16 matches
Mail list logo