ICEfaces
  1. ICEfaces
  2. ICE-1126

Required Attribute not Working on ice:SelectOneMenu Initialized to Empty String

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6DR#6, 1.6
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      The Wells-Fargo demo located at repo\applications\wells-fargo has an
      ice:selectOneMenu used to select the U.S. State. Currently, it defaults to
      the first state, but we would like it to have an initial value of nothing with
      the required="true" attribute on the component to force someone to select a
      state.

      At this point in time, adding an initial SelectItem with the value of an empty
      String will not fire the required="true" validator and initializing the first
      SelectItem to nothing will give it a null value and fire a ValidationError:
      Value is not valid.

      For testing purposes, you can add an initial entry with an empty String to the
      application by going to the Criteria class, removing the current
      initialization of the US_STATE_LIST and adding these two lines to the static
      block:

              US_STATE_LIST = new ArrayList(LocationLists.getUsStatesListSize()+1);
              US_STATE_LIST.add(0,new SelectItem(""));

      What we would like to do is add an empty initial SelectItem that would then
      fire the required="true" validator on the component. Please refer to ICE-873
      which was previously supposed to have resolved this issue.

        Activity

        Brad Kroeger created issue -
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1170 12395
        Ken Fyten made changes -
        Assignee Adnan Durrani [ adnan.durrani ]
        Philip Breau made changes -
        Support Customer Ref. #s 725
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Assignee Priority P3
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Assignee Priority P3 P1
        Adnan Durrani made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Mircea Toma [ mircea.toma ]
        Mircea Toma made changes -
        Assignee Mircea Toma [ mircea.toma ] Adnan Durrani [ adnan.durrani ]
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 1.6DR#5 [ 10071 ]
        Fix Version/s 1.6 [ 10031 ]
        Resolution Fixed [ 1 ]
        Philip Breau made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Philip Breau made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Neil Griffin made changes -
        Attachment sample-icefaces-sun-portlet.war [ 10453 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P1 P2
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Fix Version/s 1.6DR#5 [ 10071 ]
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Assignee Priority P2
        Resolution Fixed [ 1 ]
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P1
        Assignee Adnan Durrani [ adnan.durrani ]
        Adnan Durrani made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.6DR#6 [ 10090 ]
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1
        Assignee Adnan Durrani [ adnan.durrani ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Brad Kroeger
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: