Re: “Invalid number of parameters supplied for pattern” error

Splash Forums PrettyFaces Users "Invalid number of parameters supplied for pattern" error Re: “Invalid number of parameters supplied for pattern” error

#20346

It seems like you are using a <pretty:link> component on your page. In this case you must add a <f:param> to set the value of the path parameter for the outgoing link. Something like this:

<pretty:link mappingId="myMapping">
<f:param value="DE"/>
Click here!
</pretty:link>

If you want to keep the language from the URL the user is accessing, you can use a value binding to refer to the value in your bean like this:

<pretty:link mappingId="myMapping">
<f:param value="#{accueilView.language}"/>
Click here!
</pretty:link>