Splash › Forums › PrettyFaces Users › CommandButton with parameters › Re: CommandButton with parameters
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:
<f:param name="action" value="edit" />
<f:param name="id" value="2" />
I hope this helps
If you find our tools useful, please consider making a donation to help us stay online and building software!