Developing Web 2.0 applications
with JavaServerFaces
and Dreamweaver
>> Just Became Easier
Documentation
Search
  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
  12. JSF Tag Reference
JSF Core Tag Library
  f:actionListener
  f:ajax
  f:attribute
  f:convertDateTime
  f:convertNumber
  f:converter
  f:event
  f:facet
  f:loadBundle
  f:metadata
Selected f:param
  f:phaseListener
  f:selectItem
  f:selectItems
  f:setPropertyActionListener
  f:subview
  f:validateBean
  f:validateDoubleRange
  f:validateLength
  f:validateLongRange
  f:validateRegex
  f:validateRequired
  f:validator
  f:valueChangeListener
  f:verbatim
  f:view
  f:viewParam
If you like this documentation, please take a look at my book:

12. JSF Core Tag Reference

Documentation > JSF > JSF Tag Reference > JSF Core Tag Library > 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.

JSF Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html">
<h:head />
<body>
<h:outputFormat value="Welcome, {0}. You have {1} new messages.">
	<f:param value="#{userController.user.firstName}" />
	<f:param value="#{userController.user.messageCount}" />
</h:outputFormat>
</body>
</html>
This example was formatted by JSFToolbox for Dreamweaver.

HTML Output

Welcome, John. You have 12 new messages.

Tag Attributes

binding Expression
 
The value-binding expression linking this component tag to a backing bean property.
disable Text
Since JSF 2.0
A boolean value indicating if the parameter should be included or not.
id Text
 
The unique identifier value for this component. The value must be unique within the closest naming container.
name Text
 
The name attribute sets the name of the parameter to be created.
value Text
Required
The value attribute sets the current value for this component.