primeface 4 redirect with fases-navigation.xml not working

UI Components for JSF
Post Reply
txomin
Posts: 2
Joined: 23 Apr 2014, 17:26

23 Apr 2014, 18:11

I´m migrating from primeface 3.4 to primeface 4 and I noticed that all the buttons that redirect through fases-navigation.xml stopped working.

For example:

Code: Select all

			<p:commandButton value="#{msg.cancel}" id="cancel"
				action="#{MyBean.actionExit}" process="@this"/>
		</p:outputPanel>
the button described above receives a "successful_exit" action from a bean

Code: Select all

	public String actionExit(){
		FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("MyBean");
		return "successful_exit";
	}
once this button receives successful_exit it should redirect to another page using faces-navigation.xml

Code: Select all

	<navigation-rule>
		<from-view-id>/pages/Mypage.xhtml</from-view-id>
                    .........
		<navigation-case>
			<from-outcome>successful_exit</from-outcome>
			<to-view-id>/pages/Home.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
if I go back to primeface 3.4 it works perfectly.

Awaiting for your answer


Kind regards

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests