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:
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
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 or
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
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
try this
public TestForm(String form, final IModelDate dateModel) {
super(form, dateModel);
DateTextField dateTextField = new DateTextField(txtDate,
dateModel, new StrictPatternDateConverter(dd/MM/, false));
DatePicker datePicker = new DatePicker();
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:
On Fri, Apr 13, 2012 at 11:26 AM, dpmihai dpmi...@yahoo.com 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
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:
Create a quickstart app and attach it to Jira.
Thanks!
On Fri, Apr 13, 2012 at 11:35 AM, dpmihai dpmi...@yahoo.com 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.
Create a quickstart app and attach it to Jira.
Thanks!
On Fri, Apr 13, 2012 at 11:35 AM, dpmihai dpmi...@yahoo.com 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.
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.
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
Hi,
Should be better with a form
private IModelDate date;
public Test() {
super();
add(new TestForm(form, date = new ModelDate(new Date(;
}
private class TestForm extends Form {
public TestForm(String form, final IModelDate dateModel) {
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:
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:
16 matches
Mail list logo