Details
-
Bug
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
JBoss4.0.3/Tomcat on WinXP
Description
Example:
<t:panelNavigation2 layout="list">
< t:commandNavigation2 value="MyText" .../>
...
renders an empty html link.
The problem does not occure, if layout="table".
And in version 1.1.1 both layouts are rendered correctly.
Possible fix:
Method renderChildrenListLayout() of class
org.apache.myfaces.renderkit.html.HtmlNavigationMenuRendererUtils
contains the folling section:
Object value = navItem.getValue();
navItem.setValue(null); // unset value, value must not be rendered
navItem.encodeBegin(facesContext);
HtmlNavigationMenuRendererUtils.renderChildren(facesContext, navItem);
navItem.encodeEnd(facesContext);
navItem.setValue(value); // restore value
Remove "navItem.setValue(null)".