Re: pretty: And Path Params

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

#22912

If you want to use <pretty:link>, then unfortunately you must specify all necessary parameters or the link will not be generated in the rewritten form. You should be able to pull these parameters from your backing beans:

<h:link outcome="pretty:" title="Italiano">
<f:param name="language" value="it" />
<f:param name="action" value="#{myBean.action}" />
<f:param name="processName" value="#{myBean.processName}" />
</h:link>

There is no avoiding this with <pretty:link> :) However, if you use a standard JSF2 <h:link includeViewParams="true">, then you may be able to do what you want to do via omitting the parameters, and PrettyFaces will figure out how to fix the URL for you automatically. No guarantees :) Try it out and let me know what you get working.