Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2844

Make CheckGroupSelector Ajax friendly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.7
    • 1.4.10, 1.5-M1
    • wicket
    • None

    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; }

        }");

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            martin-g Martin Grigorov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: