Reply To: Problem with link generation with language parameter.

Splash Forums PrettyFaces Users Problem with link generation with language parameter. Reply To: Problem with link generation with language parameter.

#24474

Marcin Kapusta
Participant

Lincoln,

I get it to working by write link in this way:

<h:link outcome="pretty:home" includeViewParams="true">

The includeViewParams was needed.

Also I had f:viewParam defined in the master template and this is bad idea. I moved it to my view and insert it under f:metadata, and now it works. There is still problem with language parameter that exists on every page and I can’t put it in the master template. I have to manualy provide the value of the parameter like this:

<h:link outcome="pretty:home" includeViewParams="true">
  <f:param name="language" value="#{localeBean.language}" />
</h:link>

Regards,
Martin

  • This reply was modified 8 years, 5 months ago by  Marcin Kapusta.
  • This reply was modified 8 years, 5 months ago by  Marcin Kapusta. Reason: formatting