Re: pretty: And Path Params

Splash Forums PrettyFaces Users pretty: And Path Params Re: pretty: And Path Params


If you return pretty:something from an action method, PrettyFaces will extract the current value of #{currentUser.language} to build the URL. This way you will always be redirected to the URL with the current language.

If you use <h:link> or <pretty:link> this is not the case because you typically do not want to link to a page using the “current” value of something. This makes sense because typically you have something like object IDs as path or query parameters. So you have to specify the path and query parameter values using <f:param> in this case.