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

CheckGroupSelector ignores disabled-state in Check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.9
    • 1.4.11, 1.5-M2.1
    • wicket
    • None

    Description

      I have a list with Checks, in a CheckGroup. Some of the Checks are disabled (gray in html). I also have a CheckGroupSelector. When clicking the CheckGroupSelector, the disabled Checks are also modified. I expect them to be left alone.

      The javascript in the CheckGroupSelector is IMHO incorrect:

      it contains:

      for(var i=0;i<cb.length;i++)

      { cb[i].checked=this.checked; }

      and should be:

      for(var i=0;i<cb.length;i++)
      {
      if (!cb[i].disabled)

      { cb[i].checked=this.checked; }

      }

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            robau Rob Audenaerde
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: