Documentation
JSFToolbox

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Developing Web Sites
  4. Using Components
  5. Internationalization
  6. Code View Support
  7. Design View Support
  8. Keyboard Shortcuts
  9. Tag Object Toolbars
  10. JSF Server Behaviors
  11. Property Inspectors
Selected 12. JSF Tag Reference

12. JSF Tag Reference

Contents > JSF Tag Reference > JSF Core Tags

10. JSF Core Tag Reference

Contents > JSF Core Tag Reference > f:param

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.

Tag Attributes

binding String
 
The value-binding expression linking this component tag to a backing bean property.
id String
 
The unique identifier value for this component. The value must be unique within the closest naming container.
name String
 
The name attribute sets the name of the parameter to be created.
value String
Required
The value attribute sets the value of the parameter to be set.