Reply To: Losing request parameter

Splash Forums PrettyFaces Users Losing request parameter Reply To: Losing request parameter

#26427

If you use:

return "pretty:login";

PrettyFaces will send a redirect to the client, which means that the browser will request page2 in a separate request. That’s why the parameter is lost.

If you use:

return "page2.xhtml";

JSF will directly render page2 in the SAME request. That’s why the URL won’t change and you will still have page1 in the browser URL. But as it is the same request, the parameter will be still there.

If you force JSF to also use a redirect by using:

return "page2.xhtml?faces-redirect=true";

You will actually have the same problem.