You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Cash, Jamie" <JC...@ifdsgroup.co.uk> on 2005/11/25 10:17:38 UTC

commandNavigation2 with tiles


> I am trying to use the commandNavigation in myfaces, but the menu behaves normally when no action is associated with the commandNavigation2 tags, but as soon as I associate an action, the menu will no longer remain highlighted.
> 
> My code for the menu is as follows:
> 
> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
> <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
>  
> <t:div id="subnavigation_outer">
> <t:div id="subnavigation">
> <h:form>
> 	<t:panelNavigation2 id="menu" layout="list" itemClass="menu" activeItemClass="selected" openItemClass="selected">
> 		<%-- About --%>
> 		<t:commandNavigation2 value="#{website.title_about}" action="nav_about" styleClass="menu-item"/>
> 		
> 		<%-- Products --%>
> 		<t:commandNavigation2 value="#{website.title_products}" styleClass="menu-item">
> 			<t:commandNavigation2 value="#{website.title_products_overview}" action="nav_products_overview" styleClass="menu-item"/>
> 			<t:commandNavigation2 value="#{website.title_products_esecurity}" styleClass="menu-item">
> 				<t:commandNavigation2 value="#{website.title_products_esecurity_overview}" action="nav_products_esecurity_overview" styleClass="menu-item"/>
> 				<t:commandNavigation2 value="#{website.title_products_esecurity_demo}" action="nav_products_esecurity_demo" styleClass="menu-item"/>
> 			</t:commandNavigation2>
> 		</t:commandNavigation2>
> 		
> 		<%-- Consultancy --%>
> 		<t:commandNavigation2 value="#{website.title_consultancy}" action="nav_consultancy" styleClass="menu-item"/>
> 		
> 		<%-- Contact --%>
> 		<t:commandNavigation2 value="#{website.title_contact}" styleClass="menu-item">
> 			<t:commandNavigation2 value="#{website.title_contact_main}" action="nav_contact_main" styleClass="menu-item"/>
> 			<t:commandNavigation2 value="#{website.title_contact_enquiry}" action="nav_contact_enquiry" styleClass="menu-item"/>
> 			<t:commandNavigation2 value="#{website.title_contact_sales}" action="nav_contact_sales" styleClass="menu-item"/>
> 			<t:commandNavigation2 value="#{website.title_contact_support}" action="nav_contact_support" styleClass="menu-item"/>		
> 		</t:commandNavigation2>
> 		
> 		<%-- Forum --%>
> 		<t:commandNavigation2 value="#{website.title_forum}" action="nav_forum" styleClass="menu-item"/>
> 	</t:panelNavigation2>
> </h:form>
> </t:div>
> </t:div>
> 
> 
> I am using MyFaces 1.1.1 with tiles.
> 
> Do I need to raise this as a jira issue, or am I missing something?
> 
> Regards 
> 
> Jamie Cash
> 


INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
********************** N O T I C E *********************************

This message and any attachments is intended only for the individual or company to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your possession.

International Financial Data Services (UK) Ltd is authorised and regulated by the Financial Services Authority.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

**********************************************************************


Re: commandNavigation2 with tiles

Posted by Thomas Spiegl <th...@gmail.com>.
Jamie,

please try the latest nightly build. Panelnavigation2 was not stable in
release 1.1.1

HTH
Thomas

On 11/25/05, Cash, Jamie <JC...@ifdsgroup.co.uk> wrote:
>
>
>
> > I am trying to use the commandNavigation in myfaces, but the menu
> behaves normally when no action is associated with the commandNavigation2
> tags, but as soon as I associate an action, the menu will no longer remain
> highlighted.
> >
> > My code for the menu is as follows:
> >
> > <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
> > <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
> > <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
> >
> > <t:div id="subnavigation_outer">
> > <t:div id="subnavigation">
> > <h:form>
> >       <t:panelNavigation2 id="menu" layout="list" itemClass="menu"
> activeItemClass="selected" openItemClass="selected">
> >               <%-- About --%>
> >               <t:commandNavigation2 value="#{website.title_about}"
> action="nav_about" styleClass="menu-item"/>
> >
> >               <%-- Products --%>
> >               <t:commandNavigation2 value="#{website.title_products}"
> styleClass="menu-item">
> >                       <t:commandNavigation2 value="#{
> website.title_products_overview}" action="nav_products_overview"
> styleClass="menu-item"/>
> >                       <t:commandNavigation2 value="#{
> website.title_products_esecurity}" styleClass="menu-item">
> >                               <t:commandNavigation2 value="#{
> website.title_products_esecurity_overview}"
> action="nav_products_esecurity_overview" styleClass="menu-item"/>
> >                               <t:commandNavigation2 value="#{
> website.title_products_esecurity_demo}"
> action="nav_products_esecurity_demo" styleClass="menu-item"/>
> >                       </t:commandNavigation2>
> >               </t:commandNavigation2>
> >
> >               <%-- Consultancy --%>
> >               <t:commandNavigation2 value="#{website.title_consultancy}"
> action="nav_consultancy" styleClass="menu-item"/>
> >
> >               <%-- Contact --%>
> >               <t:commandNavigation2 value="#{website.title_contact}"
> styleClass="menu-item">
> >                       <t:commandNavigation2 value="#{
> website.title_contact_main}" action="nav_contact_main"
> styleClass="menu-item"/>
> >                       <t:commandNavigation2 value="#{
> website.title_contact_enquiry}" action="nav_contact_enquiry"
> styleClass="menu-item"/>
> >                       <t:commandNavigation2 value="#{
> website.title_contact_sales}" action="nav_contact_sales"
> styleClass="menu-item"/>
> >                       <t:commandNavigation2 value="#{
> website.title_contact_support}" action="nav_contact_support"
> styleClass="menu-item"/>
> >               </t:commandNavigation2>
> >
> >               <%-- Forum --%>
> >               <t:commandNavigation2 value="#{website.title_forum}"
> action="nav_forum" styleClass="menu-item"/>
> >       </t:panelNavigation2>
> > </h:form>
> > </t:div>
> > </t:div>
> >
> >
> > I am using MyFaces 1.1.1 with tiles.
> >
> > Do I need to raise this as a jira issue, or am I missing something?
> >
> > Regards
> >
> > Jamie Cash
> >
>
>
> INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
> ********************** N O T I C E *********************************
>
> This message and any attachments is intended only for the individual or
> company to which it is addressed and may contain
> information which is privileged, confidential or prohibited from
> disclosure or unauthorised use. If the recipient of this
> transmission is not the intended recipient, or the employee or agent
> responsible for delivering such materials to the
> intended recipient, you are hereby notified that any use, any form of
> reproduction, dissemination, copying, disclosure,
> modification, distribution and/or publication of this e-mail message or
> its attachments other than by it's intended
> recipient is strictly prohibited by the sender. If you have received it in
> error, please notify us immediately by
> telephone on the number above and destroy the message and all copies in
> your possession.
>
> International Financial Data Services (UK) Ltd is authorised and regulated
> by the Financial Services Authority.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> **********************************************************************
>
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces