[ 
https://issues.apache.org/jira/browse/WICKET-4496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov resolved WICKET-4496.
-------------------------------------

    Resolution: Not A Problem

DateField is a complex/composite component that uses underneath few other 
components (for Data, for minutes, for hours, for am/pm).
You add the AjaxFormComponentUpdatingBehavior to subcomponent that is 
responsible for the 'Date' part and it updates properly its model.
Just replace with:

System.out.println("*** date=" + getComponent().getDefaultModelObject());

and it will work as you expect. 
                
> DateField and a DateTimeField in the onUpdate method for an 
> AjaxFormComponentUpdatingBehavior , the model is never updated
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4496
>                 URL: https://issues.apache.org/jira/browse/WICKET-4496
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 1.5.5
>         Environment: Windows Vista
>            Reporter: Mihai Dinca-Panaitescu
>         Attachments: datefield.zip
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to