ICEfaces
  1. ICEfaces
  2. ICE-6126

f:selectItem noSelectionOption Inconsistency between JSF2 and ICEfaces2 Components

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 3.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Tomcat 7
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      JSF 2 adds a new attribute to f:selectItem - noSelectionOption. This is very useful in terms of having a default selection like '-Select-' not being recognized as a selection and having validation like 'required' being fired when the component is set to this value.

      In our stock JSF2 training application, when we submit the form, the h:selectOneMenu component will have the "required" validation message when the component defaults to the first '-Select-' item that has the noSelectionOption set to "true".

      When ICEfaces is added to the application the validation message is "form:country:Validation Error: Value is not valid".

      ICEfaces should be generating the required message.

        Activity

        Brad Kroeger created issue -
        Brad Kroeger made changes -
        Field Original Value New Value
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Summary f:selectItem noSelectionOption Inconsistency between JSF2 and ICEfaces2 f:selectItem noSelectionOption Inconsistency between JSF2 and ICEfaces2 Components
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Salesforce Case []
        Fix Version/s 2.1 [ 10241 ]
        Assignee Ken Fyten [ ken.fyten ] Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Salesforce Case []
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Assignee Priority P2
        Adnan Durrani made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Brad Kroeger [ brad.kroeger ]
        Ken Fyten made changes -
        Fix Version/s 3.1 [ 10312 ]
        Fix Version/s 3.0 [ 10241 ]
        Ken Fyten made changes -
        Fix Version/s 3.2 [ 10338 ]
        Fix Version/s 3.1 [ 10312 ]
        Hide
        yip.ng added a comment - - edited

        Still can't reproduce. See screenshot-01.png.
        Modified markup is like this:
        <h:selectOneMenu id="country" value="#

        {jobApplicant.country}

        " required="true" requiredMessage="Country must be entered">

        Show
        yip.ng added a comment - - edited Still can't reproduce. See screenshot-01.png. Modified markup is like this: <h:selectOneMenu id="country" value="# {jobApplicant.country} " required="true" requiredMessage="Country must be entered">
        Migration made changes -
        Assignee Brad Kroeger [ brad.kroeger ] yip.ng [ yip.ng ]
        Hide
        Brad Kroeger added a comment - - edited

        Attached find a JSF2 application, requires addition of ICEfaces jars

        Show
        Brad Kroeger added a comment - - edited Attached find a JSF2 application, requires addition of ICEfaces jars
        Migration made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Migration made changes -
        Attachment job-application.zip [ 14959 ]
        Migration made changes -
        Attachment screenshot-01.png [ 14964 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2 [ 10011 ]

          People

          • Assignee:
            yip.ng
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: