Page 1 of 1

navigation problem with menu

Posted: 30 Jun 2010, 19:14
by kislo_metal
Hi all!.
Problem in 2.1.RC1-SNAPSHOT

form menu I want to navigate to some page

In menu:

Code: Select all

<p:menuitem value="#{i18n.register}" action="register"></p:menuitem>
in faces-config.xml

Code: Select all

<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

Code: Select all

<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!

Re: navigation problem with menu

Posted: 30 Jun 2010, 21:43
by cagatay.civici
Hi,

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

Re: navigation problem with menu

Posted: 30 Jun 2010, 21:51
by cagatay.civici
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.

Re: navigation problem with menu

Posted: 01 Jul 2010, 11:11
by kislo_metal
Thank you!
Sorry for post in wrong forum.