Board index JavaServer Faces General navigation problem with menu

navigation problem with menu

Components, Ajax Framework, Utilities and More.

Post 30 Jun 2010, 19:14

Posts: 9
Hi all!.
Problem in 2.1.RC1-SNAPSHOT

form menu I want to navigate to some page

In menu:
<p:menuitem value="#{i18n.register}" action="register"></p:menuitem>

in faces-config.xml
<navigation-case>
            <from-outcome>register</from-outcome>
            <to-view-id>/register.xhtml</to-view-id>
</navigation-case>

But navigation not working in this case.
It works if we put <redirect/> to it
<navigation-case>
            <from-outcome>register</from-outcome>
            <to-view-id>/register.xhtml</to-view-id>
            <redirect/>
</navigation-case>


So, why it is not working without redirect option?
Thank you!


Posts: 15072
Location: Cybertron

Hi,

Please use support forum for questions, users voice is for feature requests.
PrimeFaces Lead


Posts: 15072
Location: Cybertron

Ok, moved this to the support forum. Since you are doing an ajax request, redirect is necessary to navigate. If you set ajax="false" on menuitem, you can use it without redirects as well.
PrimeFaces Lead


Posts: 9
Thank you!
Sorry for post in wrong forum.


Return to General