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

        Galina Gavrilo created issue -
        David Brainard made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        David Brainard made changes -
        Attachment _SelectItemsIterator.patch [ 12368526 ]
        David Brainard made changes -
        Attachment SelectItemsIterator.patch [ 12368527 ]
        Leonardo Uribe made changes -
        Assignee Leonardo Uribe [ lu4242 ]
        Affects Version/s 1.2.3 [ 12313144 ]
        Leonardo Uribe made changes -
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Fix Version/s  1.1.6-SNAPSHOT [ 12312311 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.2.4-SNAPSHOT [ 12313145 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.1.6 [ 12312312 ]
        Fix Version/s 1.2.4-SNAPSHOT [ 12313145 ]
        Fix Version/s  1.1.6-SNAPSHOT [ 12312311 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development