Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.6.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:any
-
ICEsoft Forum Reference:
Description
Using a value binding for a menuItem's styleClass attribute causes the following behaviour:
- the top menu ignores the style changes of it's bound value
- the submenu gets rendered in the desired fashion
So, the value binding only works for sub menuItems, not for top menuItems
- the top menu ignores the style changes of it's bound value
- the submenu gets rendered in the desired fashion
So, the value binding only works for sub menuItems, not for top menuItems
-
Hide
- forum-5094.war
- 33 kB
- Michael Thiem
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/.../MenuBarBean.class 2 kB
- WEB-INF/faces-config.xml 0.5 kB
- WEB-INF/html_basic.tld 244 kB
- WEB-INF/jsf_core.tld 25 kB
- WEB-INF/web.xml 2 kB
- css/custom.css 0.0 kB
- images/menu/actualsize.gif 0.6 kB
- images/menu/arrow.gif 0.2 kB
- images/menu/fitinpage.gif 0.4 kB
- images/menu/fitinwindow.gif 0.4 kB
- images/menu/open.gif 0.6 kB
- images/menu/print.gif 0.6 kB
- images/menu/recent.gif 0.6 kB
- images/menu/save.gif 0.6 kB
- images/menu/zoomin.gif 0.6 kB
- images/menu/zoomout.gif 0.6 kB
- index.jsp 0.2 kB
- main.jspx 5 kB
-
Hide
- forum-5094-src.zip
- 38 kB
- Michael Thiem
-
- forum-5094/.project 1 kB
- forum-5094/src/.../menuBar/MenuBarBean.java 4 kB
- forum-5094/WebRoot/.../MenuBarBean.class 2 kB
- forum-5094/WebRoot/WEB-INF/web.xml 2 kB
- forum-5094/WebRoot/.../faces-config.xml 0.5 kB
- forum-5094/WebRoot/.../.faces-config.mex 0.1 kB
- forum-5094/WebRoot/.../html_basic.tld 244 kB
- forum-5094/WebRoot/WEB-INF/jsf_core.tld 25 kB
- forum-5094/WebRoot/META-INF/MANIFEST.MF 0.0 kB
- forum-5094/WebRoot/index.jsp 0.2 kB
- forum-5094/WebRoot/main.jspx 5 kB
- forum-5094/WebRoot/.../menu/actualsize.gif 0.6 kB
- forum-5094/WebRoot/images/menu/arrow.gif 0.2 kB
- forum-5094/WebRoot/.../menu/fitinpage.gif 0.4 kB
- forum-5094/WebRoot/.../menu/fitinwindow.gif 0.4 kB
- forum-5094/WebRoot/images/menu/open.gif 0.6 kB
- forum-5094/WebRoot/images/menu/print.gif 0.6 kB
- forum-5094/WebRoot/.../menu/recent.gif 0.6 kB
- forum-5094/WebRoot/images/menu/save.gif 0.6 kB
- forum-5094/WebRoot/.../menu/zoomin.gif 0.6 kB
- forum-5094/WebRoot/.../menu/zoomout.gif 0.6 kB
- forum-5094/WebRoot/css/custom.css 0.0 kB
- forum-5094/.mymetadata 0.3 kB
- forum-5094/.classpath 0.5 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
example source code
Show
Michael Thiem
added a comment - example source code
Is it possible to fix it in 1.6.1 release? I really appreciate it.
Fixed revision: 14765
One thing I would like to mention here is that, The root level menu Items belongs to the menuBar, so that is why ICEfaces suffix the menuBar's item style class name with the "Item" literal (e.g.).
JSP:
<ice:menuBar>
<ice:menuItem styleClass="File">(it's a root level menu item)
<ice:menuItem styleClass="Open"/>
<ice:menuItem styleClass="Close"/>
</ice:menuItem>
<ice:menuBar>
Generated HTML:
<div>
<div class="FileItem"> ("Item" has been appended to the styleClass name)
<div class="Open">
<div class="Close">
</div>
</div>
Show
Adnan Durrani
added a comment - Fixed revision: 14765
One thing I would like to mention here is that, The root level menu Items belongs to the menuBar, so that is why ICEfaces suffix the menuBar's item style class name with the "Item" literal (e.g.).
JSP:
<ice:menuBar>
<ice:menuItem styleClass="File">(it's a root level menu item)
<ice:menuItem styleClass="Open"/>
<ice:menuItem styleClass="Close"/>
</ice:menuItem>
<ice:menuBar>
Generated HTML:
<div>
<div class="FileItem"> ("Item" has been appended to the styleClass name)
<div class="Open">
<div class="Close">
</div>
</div>
example war file