ICEfaces
  1. ICEfaces
  2. ICE-6474

CLONE -Can't send in an array of objects as the values for a selectOneMenu component

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      jsf2.0, ICEfaces-2.0
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Use a list/array that consists of SelectItem objects.

      For Example:
              cityList = new ArrayList<SelectItem>();
              cityList.add(new SelectItem("TORONTO", "TORONTO"));
              cityList.add(new SelectItem("CALGARY", "CALGARY"));
      Show
      Use a list/array that consists of SelectItem objects. For Example:         cityList = new ArrayList<SelectItem>();         cityList.add(new SelectItem("TORONTO", "TORONTO"));         cityList.add(new SelectItem("CALGARY", "CALGARY"));

      Description

      With the JSF <h:selectOneMenu> component, you can use an array of objects for the selectOneMenu options. Using the same set of objects for an <ice:selectOneMenu> does not show the options. For example:

      JSF Component Code:
      <h:selectOneMenu value="#{backingBean.city}" >
           <f:selectItems value="#{backingBean.cities}"/>
      </h:selectOneMenu>

      Backing Bean Code:
      public City[] getCities() {
              return City.values();
      }

      Testing with ICEfaces 1.8.x and JSF 1.2 showed that the array of objects does not work for both the JSF and ICEfaces components. It looks like something was changed on the JSF component and this has not been changed with the ICEfaces components.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #23852 Sun Jan 30 12:34:28 MST 2011 adnan.durrani Fix for ICE-6474 (CLONE -Can't send in an array of objects as the values for a selectOneMenu component)
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/java/com/icesoft/faces/renderkit/dom_html_basic/MenuRenderer.java

            People

            • Assignee:
              Adnan Durrani
              Reporter:
              Wilson Bogado
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: