You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2015/08/11 13:31:46 UTC

[jira] [Resolved] (WICKET-5948) wicket-ajax.js probably doesn't traverse the children of
or

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

Martin Grigorov resolved WICKET-5948.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 7.1.0
                   6.21.0

Only wicket-ajax.js needed improvement.

The JS event (e.g. 'change') bubbles from the input/select/textarea to the div/span (the FormComponentPanel) so it fires the Ajax call. With the newly added logic it collects the names and values for all HTMLFormElement children of the div/span and sends them as Ajax POST data.
At the server side there is no need of any change in AjaxFormComponentUpdatingBehavior.

> wicket-ajax.js probably doesn't traverse the children of <div> or <span>
> ------------------------------------------------------------------------
>
>                 Key: WICKET-5948
>                 URL: https://issues.apache.org/jira/browse/WICKET-5948
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 6.20.0
>            Reporter: Vaclav Cermak
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.21.0, 7.1.0
>
>         Attachments: kendoui.datetimepicker-test.zip
>
>
> I tried to add AjaxFormComponentUpdatingBehavior (with onchange event) to a DateTimePicker from wicket-jquery-ui. It ends with following error when I change input value from browser:
> {code}
> Value of variable [[date]] could not be resolved while interpolating [[Error while parsing datetime: date was '${date}' and time was '${time}']]
> {code}
> Wicket probably does not update input values with Ajax, more discussion here:
> https://groups.google.com/forum/#!topic/wicket-jquery-ui/ZKzfPkm51WQ



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)