Name

<f:param>

Synopsis

This action represents an instance of the component type registered with the type ID javax.faces.Parameter (by default, an instance of the javax.faces.component.UIParameter class). The action creates an instance of the component class, configures it with the name and value from the action attributes and adds it as a child to the component represented by closest JSF component parent action element.

Syntax

<f:param [id="id"] [binding="componentBinding"] [name="name"] value="value" />

Attributes

Attribute name

Java type

EL expression type

Description

binding
String

VB

Must be a value binding expression for a property the component is bound to.

id
String

None

The component ID.

name
String

Any

The parameter name.

value
String

Any

The parameter value.

Example

<f:loadBundle basename="messages" var="msgs" />
<h:outputFormat value="#{msgs.sunRiseAndSetText}">
  <f:param value="#{city.sunRiseTime}" />
                  <f:param value="#{city.sunSetTime}" />
</h:outputFormat>

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.