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

commandNavigation2 and navigationMenuItem will not be rendered at the same time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.7-SNAPSHOT
    • None
    • None
    • Tomahawk 1.1.7-SNAPSHOT , Myfaces 1.1.5 , Facelets 1.1.11 , Windows XP , JBOSS 4.0.5.GA

    Description

      Hallo!

      In my code the tag 'navigationMenuItem ' or 'navigationMenuItems ' will not be rendered.

      I use MyFaces 1.1.5, Faclets 1.1.11 and Tomahawk 1.1.7 SNAPSHOT.

      My aim is to insert into a static menu a part that should be generated dynamically. Therefore I should insert into a menuitem 'commandNavigation2' a navigationMenuItems.

      But navigationMenuItem and navigationMenuItems both are not rendered in my page.

      I realised that under panelNavigation2 navigationMenuItem is only renedered if the panelNavgation2 attribute layout is set to layout="list". But in this case commandNavigation2 will not be rendered.

      Vice versa if panelNavgation2 attribute layout is set to layout="table" commandNavigation2 will be rendered but not navigationMenuItem.
      To realise in this case (layout='table') a list-like output I inserted the <br/> tags into the commandNaviagtion-Tags.

      What can I do to use both tags?

      Elena

      Here my code:

      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk">
      <body>
      <f:loadBundle basename="menue" var="menue"/>
      <f:view>
      <h:form>
      <t:div id="subnavigation_outer" forceId="true">
      <t:div id="subnavigation" forceId="true">
      <t:panelNavigation2 id="nav1"
      layout="list"
      itemClass="mypage"
      activeItemClass="selected">
      <t:navigationMenuItem itemLabel="ItemTest"/>
      <t:commandNavigation2 id="navitems1" value="test1">
      <br/>
      <t:commandNavigation2 id="navitems2" value="test11">
      <t:navigationMenuItem itemLabel="ItemTest"/>
      <br/>
      </t:commandNavigation2>
      <t:commandNavigation2 id="navitems3" value="test12">
      <br/>
      </t:commandNavigation2>
      <t:commandNavigation2 id="navitems4" value="test13">
      <br/>
      </t:commandNavigation2>
      <t:commandNavigation2 id="navitems5" value="test14">
      <br/>
      </t:commandNavigation2>
      </t:commandNavigation2>
      <t:commandNavigation2 id="navitems6" value="test2"/>
      <t:commandNavigation2 id="navitems7" value="test3"/>
      </t:panelNavigation2>
      </t:div>
      </t:div>
      </h:form>
      </f:view>
      </body>
      </html>

      Attachments

        Activity

          People

            Unassigned Unassigned
            elena1972 Elena Vilenskaja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: