Details
-
Type: Improvement
-
Status: Closed
-
Priority: 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
-
ICEsoft Forum Reference:
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
-
Workaround Exists:Yes
-
Workaround Description:
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.
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
- depends on
-
ICE-6107 Can't send in an array of objects as the values for a selectOneMenu component
- Closed
Activity
Wilson Bogado
created issue -
Wilson Bogado
made changes -
Ken Fyten
made changes -
Fix Version/s | 2.0.1 [ 10255 ] | |
Fix Version/s | 2.0.0 [ 10230 ] | |
Affects Version/s | 2.0.0 [ 10230 ] | |
Affects Version/s | 2.0-Beta1 [ 10231 ] | |
Affects Version/s | 2.0-Beta2 [ 10242 ] |
Ken Fyten
made changes -
Assignee Priority | P2 |
Ken Fyten
made changes -
Assignee Priority | P2 | P1 |
Adnan Durrani
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Wilson Bogado
made changes -
Attachment | ICE-6474.zip [ 12827 ] | |
Attachment | ICE-6474.war [ 12828 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #23852 | Sun Jan 30 12:34:28 MST 2011 | adnan.durrani | Fix for |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/compat/core/src/main/java/com/icesoft/faces/renderkit/dom_html_basic/MenuRenderer.java
|
Adnan Durrani
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Ken Fyten
made changes -
Assignee Priority | P1 |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The following example still does not work:
<ice:selectOneMenu value="#
{testBean.itemCode}">
{testBean.itemList}<f:selectItems value="#
" var="item" itemValue="#
{item.code}" itemLabel="#
{item.name}"/>
</ice:selectOneMenu>
Where:
itemCode is an Integer
itemList is a List<Item>
item.code is an Integer
item.nam is a String
When running this example, ICEFaces seems to try to assign item.toString() to itemCode which results in a conversion error.
h:selectOneMenu works as expected.