f:param

f:param Facelet sends a named parameter value if used in any commandButton, commandLink, outputLink or button. These parameters will be sent as form parameters when doing the POST/GET requests. In order to get them, you can use ExternalContext getRequestParameterMap method for getting the sent value.

It's important to notice the differences between f:param and f:attribute:
  • f:attribute stores the key-values in the component itself, so, in order to get those attributes, the reference to the UIComponent should be available. For getting the f:param values is enough to use the getRequestParameterMap method mentioned before.
  • f:param should be used for sending String parameter values. If it's intented to use Object, then use f:attribute instead

General Usage

Source Code

Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20