navigation problem with menu

UI Components for JSF
Post Reply
User avatar
kislo_metal
Posts: 9
Joined: 29 Jun 2010, 12:51

30 Jun 2010, 19:14

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!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Jun 2010, 21:43

Hi,

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Jun 2010, 21:51

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.

User avatar
kislo_metal
Posts: 9
Joined: 29 Jun 2010, 12:51

01 Jul 2010, 11:11

Thank you!
Sorry for post in wrong forum.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests