Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1957

tr:selectManyShuttle with required="true" requires a selected item in the leading and trailing list box to pass validation.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.13-core , 1.2.14-core
    • 1.2.14-core
    • Components
    • None

    Description

      The selectManyShuttle component with required="true" imposes a required validation rule on each of its list boxes. This requires that not only an item has to be selected (moved from leading to trailing) but also that each list box must have an active selection (highlighted item) to pass validation. While this holds true if the user moves an item from one list to the other, it doesn't if the component is populated already and the user doesn't change anything. In this case the validation fails with a Field Error alert for each list box saying that at least one item has to be selected.

      The patch provided sets the required attribute for the child listboxes to false as this validation rule is already imposed by the parent component. The patch also updates the tests.

      I haven't checked it but quite possibly also the 2.0.x trunk is affected by this.

      Attachments

        1. SelectManyShuttleRenderer.diff.txt
          15 kB
          Felix Röthenbacher

        Activity

          People

            matzew Matthias Wessendorf
            froethenbacher@apache.org Felix Röthenbacher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: