Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1744

Validation messages is shown for SelectOneMenu in case first child is not SelectItems or SelectItem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.5, 1.2.3
    • Fix Version/s: 1.1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      If SelectOneMenu has child of another type than SelectItems or SelectItem at first place in the children list (e.g. itomahawk jsValueChangeListener), validation of combobox fails with message "Value is not a valid option." Value range is empty in this case because _SelectItemsIterator hasNext() method returns false if first child is not of type SelectItems or SelectItem. It should just skip such children, and should continue looking for values. Right?

        Attachments

        1. _SelectItemsIterator.patch
          0.6 kB
          David Brainard
        2. SelectItemsIterator.patch
          0.6 kB
          David Brainard

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              galina Galina Gavrilo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: