Navigation with MenuBar (2.2M1, JSF2)
Posted: 21 Oct 2010, 19:27
Hello,
I have a navigation problem with the menu bar. The problem is likely the same described in the following toping:
http://primefaces.prime.com.tr/forum/vi ... f=3&t=2278
I have seen that I can use the "url" attribute, but I want to use the "action string" defined in the faces-config.xml file.
See bellow an example of my problem:
faces-config
Menu 1. Doesn't work
Menu 2. Doesn't work
Menu 3. Ok
Is it possible to use the "action string" with the menu bar If yes, how can I do that ?
Thank for your Help
Sven
I have a navigation problem with the menu bar. The problem is likely the same described in the following toping:
http://primefaces.prime.com.tr/forum/vi ... f=3&t=2278
I have seen that I can use the "url" attribute, but I want to use the "action string" defined in the faces-config.xml file.
See bellow an example of my problem:
faces-config
Code: Select all
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>dashboard</from-outcome>
<to-view-id>/pages/dashboard/index.xhtml</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
Code: Select all
<p:submenu>
<f:facet name="label">
<p:menuitem value="Dashboard" action="dashboard" />
</f:facet>
</p:submenu>
Code: Select all
<p:submenu>
<f:facet name="label">
<p:menuitem value="Dashboard" url="dashboard" />
</f:facet>
</p:submenu>
Code: Select all
<p:submenu>
<f:facet name="label">
<p:menuitem value="Dashboard" url="/pages/dashboard/index.xhtml" />
</f:facet>
</p:submenu>
Thank for your Help
Sven