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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5, 1.2.3
    • 1.1.6
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: