This advanced component embeds a JavaServer Faces UIParameter component
in a JavaServer Faces component.
There are two common uses:
<f:param> inside <h:outputLink>,
a Standard Hyperlink component, you can define a query parameter to be added to the URL. For
example:
<h:outputLink value="/mp3StreamerServlet">
<f:param name="album" value="#{Page1.albumId.value}"/>
<f:param name="track" value="#{Page1.trackId.value}"/>
</h:outputLink>
<f:param> inside <h:outputFormat>,
a Standard Formatted Output component, you can specify substitution parameters for a java.text.Message object, as shown in the following example:
<h:outputFormat value="You have {0} items in your shopping cart.">
<f:param value="#{SessionBean1.cart.itemCount}"/>
</h:outputFormat>