Reply To: h:commandLink has stoped working after adding prettyfaces

Splash Forums PrettyFaces Users h:commandLink has stoped working after adding prettyfaces Reply To: h:commandLink has stoped working after adding prettyfaces

#27405

You don’t need to change the action of your commandLinks. So something like this should work:

<h:commandLink value="go" action="/os/compras/proveedor/List.xhtml?faces-redirect=true/>

The action attribute must always refer to the view id and NOT to the pretty URL.

But please note that creating such commandLinks is bad practice as it creates a postback followed by a redirect to the new page. The postback is unnecessary. Just use h:link instead which will create a standard HTML link to the new page:

<h:link outcome="/os/compras/proveedor/List.xhtml">go</h:link>

Back to your original problem. Could you please check your dependencies? Make sure you have the rewrite-integration-faces module in your dependencies. This one is required for the JSF integration.