f:param |
|
The Param tag sets a parameter for the component associated with the enclosing tag. You can use it to you build compound messages by replacing placeholder values in an outputFormat tag. The body content of the param tag must be empty. See also the HTML outputFormat tag.
Example:
<h:outputFormat value="Welcome, {0}. You have {1} new messages.">
<f:param value="#{userBean.user.firstName}" />
<f:param value="#{userBean.user.messageCount}" />
</h:outputFormat>
HTML Output
Welcome, John. You have 12 new messages.
|