Hi i'm new to wicket, I wonder if any of yous can help me. I'm trying to get
the date selected from DateField component when the date is changed. I've
tried getConvertedInput() and getInput()but they just return null. Below is
my code, I've striped it down to just display the date in the console to
make things a bit easier.



public class TestFormPanel extends Panel{

    protected DateField dateField;
    private static final long serialVersionUID = 1L;

    public TestFormPanel (String id){

        dateField = new DateField("date", new Model(new Date()));

        dateField.add(new AjaxFormComponentUpdatingBehavior("onchange")
            protected void onUpdate(AjaxRequestTarget arg0) {
                System.out.println("new dateeeeeeeeeeeeeeeeeeeeeeeeeeeeee "
+ dateField.getInput());
                System.out.println("new dateeeeeeeeeeeeeeeeeeeeeeeeeeeeee "
+ dateField.getConvertedInput());

Reply via email to