You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Elena Vilenskaja (JIRA)" <de...@myfaces.apache.org> on 2007/08/29 14:21:31 UTC

[jira] Created: (TOMAHAWK-1100) commandNavigation2 and navigationMenuItem will not be rendered at the same time

commandNavigation2 and  navigationMenuItem will not be rendered at the same time
--------------------------------------------------------------------------------

                 Key: TOMAHAWK-1100
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1100
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: NavigationMenuItem, Panel Navigation2
    Affects Versions: 1.1.7-SNAPSHOT
         Environment: Tomahawk 1.1.7-SNAPSHOT ,  Myfaces 1.1.5 ,  Facelets 1.1.11 ,  Windows XP ,  JBOSS 4.0.5.GA
            Reporter: Elena Vilenskaja


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>




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.