You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mathias Stein (JIRA)" <de...@myfaces.apache.org> on 2006/02/23 16:20:37 UTC
[jira] Updated: (TOMAHAWK-82) t:commandNavigation2 rendering
ignores static text of its value attribute, iff layout="list"
[ http://issues.apache.org/jira/browse/TOMAHAWK-82?page=all ]
Mathias Stein updated TOMAHAWK-82:
----------------------------------
> t:commandNavigation2 rendering ignores static text of its value attribute, iff layout="list"
> --------------------------------------------------------------------------------------------
>
> Key: TOMAHAWK-82
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-82
> Project: MyFaces Tomahawk
> Type: Bug
> Components: Panel Navigation2
> Environment: JBoss4.0.3/Tomcat on WinXP
> Reporter: Mathias Stein
> Assignee: Thomas Spiegl
> Priority: Minor
>
> 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)".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira