Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-82

t:commandNavigation2 rendering ignores static text of its value attribute, iff layout="list"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Panel Navigation2
    • 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)".

      Attachments

        Activity

          People

            tomsp Thomas Spiegl
            mstein Mathias Stein
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: