Re: CommandButton with parameters

Splash Forums PrettyFaces Users CommandButton with parameters Re: CommandButton with parameters

#21135

The f:param tags won’t work with a h:commandLink.

I don’t think that using a h:commandLink is the best way to go in your case. It will create a postback and then redirect the user to the target page. But this postback is dispensable.

You could use a pretty:link which will simply render a standard HTML link for the page you want to navigate to. Something like this:

<pretty:link mappingId="employeeForm">
<f:param name="action" value="edit" />
<f:param name="id" value="2" />
<h:outputText value="edit"/>
</pretty:link>

I hope this helps :)

Christian