Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:OC4J 10gR3 / Windows XP, OC4J 10gR3 / SuSE Linux Enterprise 10, Tomcat 6 / Windows XP
Firefox 2 / Windows XP
IE6 / Windows XP
-
ICEsoft Forum Reference:
Description
- the menu is driven from a backing bean (i.e. <ice:menuItems value="#{...}"/> is used)
- an interval renderer is employed
-
Hide
- icefaces-menus-1.0.war
- 7.97 MB
- Alistair Young
-
- META-INF/MANIFEST.MF 0.1 kB
- simplepage.jspx 0.5 kB
- WEB-INF/classes/example/TestBean.class 3 kB
- WEB-INF/faces-config.xml 1 kB
- WEB-INF/.../backport-util-concurrent-2.2.jar 319 kB
- WEB-INF/lib/c-1_0-rt.tld 11 kB
- WEB-INF/lib/c-1_0.tld 11 kB
- WEB-INF/lib/c.tld 16 kB
- WEB-INF/lib/commons-beanutils-1.7.0.jar 184 kB
- WEB-INF/lib/commons-collections-3.2.jar 558 kB
- WEB-INF/lib/commons-digester-1.8.jar 140 kB
- WEB-INF/.../commons-fileupload-1.3-SNAP-ICEFACES-1.7.0.jar 87 kB
- WEB-INF/lib/commons-logging-1.1.jar 52 kB
- WEB-INF/lib/el-api-1.0.jar 24 kB
- WEB-INF/lib/el-ri-2.1.jar 97 kB
- WEB-INF/lib/facelets-tld-1.0.jar 4 kB
- WEB-INF/lib/fmt-1_0-rt.tld 11 kB
- WEB-INF/lib/fmt-1_0.tld 12 kB
- WEB-INF/lib/fmt.tld 19 kB
- WEB-INF/lib/fn.tld 7 kB
- WEB-INF/lib/html_basic.tld 237 kB
- WEB-INF/lib/icefaces-1.7.2.jar 988 kB
- WEB-INF/lib/icefaces-comps-1.7.2.jar 1.71 MB
- WEB-INF/lib/icefaces-facelets-1.7.2.jar 596 kB
- WEB-INF/lib/icefaces_component.tld 587 kB
- WEB-INF/lib/include.tld 1 kB
- WEB-INF/lib/jsf-api-1.1.1.jar 356 kB
- WEB-INF/lib/jsf-impl-1.1.1.jar 778 kB
- WEB-INF/lib/jsf-ui.tld 8 kB
- WEB-INF/lib/jsf_core.tld 25 kB
-
- TestBean.java
- 3 kB
- Alistair Young
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
I should have added that this problem did not occur in ICEfaces 1.6.2 or 1.7.0.
Can you please attach the TestBean.java as well?
Happy to oblige - here you go.
Seems like MenuItem(s) requires ids inside the bean (e.g.)
MenuItem item;
MenuItem subItem;
item = new MenuItem();
//set id
item.setId("one");
item.setValue("One");
subItem = new MenuItem();
//set id
item.setId("one-1");
subItem.setValue("One.1");
Please let us know if it fixes the problem.
Yes - that did it. And putting the same fix into our real application means that our menus now behave like they did back in v1.7.0.
Many thanks.
This was an application issue, and adding ids to the dynamic menu fixes the problem. This is JSF requirement to pass Ids when creating dynamic components from the bean.
Alistair Young mentioned in his last post that, his app was fixed by adding the ids to menu components. So I think this case was open by mistakenly.
Please reopen if it is not the case.
The attached WAR file demonstrates the problem. Source code can be provided if required.