Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta1, 2.0-Beta2
-
Fix Version/s: 2.0.0
-
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:HideUse 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"));ShowUse 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
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.
-
Hide
- jsf.zip
- 22 kB
- Judy Guglielmin
-
- jsf/.classpath 0.7 kB
- __MACOSX/jsf/._.classpath 0.2 kB
- jsf/.DS_Store 6 kB
- __MACOSX/jsf/._.DS_Store 0.1 kB
- jsf/.project 0.5 kB
- __MACOSX/jsf/._.project 0.2 kB
- jsf/.settings/org.eclipse.jdt.core.prefs 22 kB
- __MACOSX/.../._org.eclipse.jdt.core.prefs 0.2 kB
- jsf/.settings/org.eclipse.jdt.ui.prefs 0.1 kB
- __MACOSX/jsf/.../._org.eclipse.jdt.ui.prefs 0.2 kB
- jsf/.../org.maven.ide.eclipse.prefs 0.3 kB
- __MACOSX/.../._org.maven.ide.eclipse.prefs 0.2 kB
- __MACOSX/jsf/._.settings 0.2 kB
- jsf/pom.xml 2 kB
- __MACOSX/jsf/._pom.xml 0.2 kB
- jsf/src/.DS_Store 6 kB
- __MACOSX/jsf/src/._.DS_Store 0.1 kB
- jsf/src/main/.DS_Store 6 kB
- __MACOSX/jsf/src/main/._.DS_Store 0.1 kB
- jsf/src/main/.../nik/jsf/BackingBean.java 2 kB
- __MACOSX/jsf/src/.../jsf/._BackingBean.java 0.2 kB
- jsf/src/main/java/fi/nik/jsf/City.java 0.1 kB
- __MACOSX/jsf/src/.../nik/jsf/._City.java 0.2 kB
- jsf/src/main/.../nik/jsf/EnumConverter.java 0.8 kB
- __MACOSX/jsf/.../jsf/._EnumConverter.java 0.2 kB
- __MACOSX/jsf/src/main/java/fi/nik/._jsf 0.2 kB
- __MACOSX/jsf/src/main/java/fi/._nik 0.2 kB
- __MACOSX/jsf/src/main/java/._fi 0.2 kB
- __MACOSX/jsf/src/main/._java 0.2 kB
- __MACOSX/jsf/src/main/._resources 0.2 kB
-
Hide
- Case9477Example2.war
- 4.66 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- WEB-INF/classes/.../BackingBean.class 2 kB
- WEB-INF/classes/com/.../example/City.class 1.0 kB
- WEB-INF/classes/.../EnumConverter.class 2 kB
- WEB-INF/classes/.../example/TestBean.class 0.3 kB
- WEB-INF/lib/commons-beanutils.jar 223 kB
- WEB-INF/lib/commons-collections.jar 554 kB
- WEB-INF/lib/commons-digester.jar 137 kB
- WEB-INF/lib/commons-logging.jar 30 kB
- WEB-INF/lib/icefaces-compat.jar 2.51 MB
- WEB-INF/lib/icefaces.jar 175 kB
- WEB-INF/lib/icepush.jar 225 kB
- WEB-INF/lib/jxl.jar 689 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 148 kB
- WEB-INF/sun-web.xml 0.5 kB
- WEB-INF/web.xml 2 kB
- welcomeICEfaces.xhtml 1 kB
Issue Links
- blocks
-
ICE-6474 CLONE -Can't send in an array of objects as the values for a selectOneMenu component
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Try it outside the tab to see if it's specific to the tab or not, pls.
Initial JIRA description was in regards to the converters not being called. Upon further review of the test case from the forum post it became evident that this issue was an issue with the component option values. When changing the values to the list of SelectItem objects the converters are called without any problems.
Attached NetBeans test case build for Glassfish V3
I tried to make this demo work but no luck. I will try to mimic.
Enum support added to selectItems. There won't be any need for a Converter.
Command: Commit
Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\core\src\main\java\com\icesoft\faces\renderkit\dom_html_basic\MenuRenderer.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\core\src\main\java\com\icesoft\faces\renderkit\dom_html_basic\MenuRenderer.java
Completed: At revision: 23185
example from the forum posting reference that shows converter issue on <ice:panelTabSet>