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

        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">
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: