Description
org.apache.wicket.markup.html.form.CheckGroupSelector changes the 'checked' property of the controlled checkboxes. The following patch modifies it to use .click() to change the state so this way if there is AjaxFormChoiceComponentUpdatingBehavior added to the CheckGroup it will fire for all checkboxes which state is changed.
- "']; if (cb!=null) { if (!isNaN(cb.length))
Unknown macro: { for(var i=0;i<cb.length;i++) { cb[i].checked=this.checked; } }
else
{ cb.checked=this.checked; } }");
+ "']; if (cb!=null) { if (!isNaN(cb.length)) { for(var i=0;i<cb.length;i++) { if (cb[i].checked != this.checked) {cb[i].click();} } } else { cb.checked=this.checked; }}");