[
https://issues.apache.org/jira/browse/WICKET-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-1640.
-----------------------------------
Resolution: Invalid
Assignee: Igor Vaynberg
the javadoc of dropdownchoice.wantonselectionchangenotification cleary states
that only the model of the dropdown choice is updated. for further discussions
please takes this to the list.
> Page Data Model Bug
> -------------------
>
> Key: WICKET-1640
> URL: https://issues.apache.org/jira/browse/WICKET-1640
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.2
> Environment: Windows XP SP2, Tomcat 6.0, IE 7.0, Wicket 1.3.2
> Reporter: fallout
> Assignee: Igor Vaynberg
>
> I have a web page that contains a set of CheckBox controls.
> Also I have a class that contains public fields for that checkboxes.
> I join fields of that class with checkboxes like this:
> CheckBox massUpdate = new CheckBox("massUpdate", new PropertyModel(ugpim,
> "massUpdate"));
> listItem.add(massUpdate);
> This web page has a Button control and a DropDownBox control that make
> postbacks.
> The problem is that when I click a CheckBox and then click the Button I see
> in debug mode that model for the checkbox has been changed.
> But when I click the same CheckBox and then change item in the DropDownBox I
> see in debug mode that model for the checkbox has not been changed.
> As I understand model must be changed in both cases.
> Tell me please what I am doing incorrectly or may be it is a wicket bug.
> And one more interesting moment.
> If I add the Ajax onclick behavior with empty body of the onUpdate method to
> the CheckBox the model gets changed in both cases.
> CheckBox massUpdate = new CheckBox("massUpdate", new PropertyModel(ugpim,
> "massUpdate"));
> AjaxFormComponentUpdatingBehavior ajaxFormComponentUpdatingBehavior = new
> AjaxFormComponentUpdatingBehavior("onclick") {
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
> }
> };
> massUpdate.add(ajaxFormComponentUpdatingBehavior);
> listItem.add(massUpdate);
> Why it is like this I do not understand because the onUpdate body is empty.
> Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.