Alloy Showcase


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 3.0.1 + Liferay Faces Bridge Implementation 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14