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 Bug
    • Status: Closed
    • Priority: Major 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?

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development