Re: URL rewriting on JSF ActionListener is not getting

Splash Forums PrettyFaces Users URL rewriting on JSF ActionListener is not getting Re: URL rewriting on JSF ActionListener is not getting

#23034

You should use an action method instead of an actionListener. Then you could do something like this:

<h:commandButton value="Login" action="#{loginBean.loginClick}" />

public void loginClick() {
return "/pages/hotel/hotelLoginNormal.xhtml?faces-redirect=true&id="+123;
}

Or this:

public void loginClick() {
loginBean.setId( 123 );
return "pretty:Login";
}

See this part of the documentation for details:

http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/navigation.html