Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.2, 1.7Beta1
-
Fix Version/s: 1.7
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Running on JBoss under Linux. Firefox and IE, although IE shows the problem less often. Prevalent on public www.icefaces.org site menus.
Description
This came up on icefaces.org (still visible on the live site as of March 12/08).
ice:menuItem appears to render two links sometimes, such as:
<a href="../community/contribute.iface"/>
<div>
<a href="../community/contribute.iface">
Contribute
</a>
</div>
In the case of the site, we get a blank white menu entry. Initially the menus were generated dynamically, with embedded loops similar to:
c:forEach
menuBar
menuItem
c:forEach
more menuItem
Various different approaches were used try to get around the problem. ice:panelSeries, ice:dataTable, ui:repeat, less menuItem elements, using ice:menuItems directly, using f:subview, moving forms around, moving includes around, adding or removing IDs, and so on.
In the end a static page was used (ie: the menuItem elements are hardcoded directly on the page), and although less common the problem is still visible (again, see the live site).
The problem does not happen locally, so perhaps it is a threading issue or some sort of problem with the rendering order. Regardless, the app can be reviewed on http://lnstage1.ice/main/ and associated source is under /repo/applications/icefaces.org/project (specifically WEB-INF/inc-plugins/header.jspx).
ice:menuItem appears to render two links sometimes, such as:
<a href="../community/contribute.iface"/>
<div>
<a href="../community/contribute.iface">
Contribute
</a>
</div>
In the case of the site, we get a blank white menu entry. Initially the menus were generated dynamically, with embedded loops similar to:
c:forEach
menuBar
menuItem
c:forEach
more menuItem
Various different approaches were used try to get around the problem. ice:panelSeries, ice:dataTable, ui:repeat, less menuItem elements, using ice:menuItems directly, using f:subview, moving forms around, moving includes around, adding or removing IDs, and so on.
In the end a static page was used (ie: the menuItem elements are hardcoded directly on the page), and although less common the problem is still visible (again, see the live site).
The problem does not happen locally, so perhaps it is a threading issue or some sort of problem with the rendering order. Regardless, the app can be reviewed on http://lnstage1.ice/main/ and associated source is under /repo/applications/icefaces.org/project (specifically WEB-INF/inc-plugins/header.jspx).
Adnan, please take a look. You might need to use the internal stage server (http://lnstage1.ice/main/ ) accessed via VPN.