Parameter sub tag
The <f:param> tag adds a parameter to a URL emitted by a component. If a component renders a URL that supports HTTP parameters (arguments) to be encoded in the URL, this tag is used to describe the parameter that should be added to the URL.
Parent tags
This tag is used as a child of the following tags:
- <h:outputLinkEx>
- <hx:requestLink>
Rendering
The parameter sub tag is encoded in the URL. It is separated from the URL by a ?. Subsequent parameters are separated by an encoded ampersand. Parameter values are separated from a name by an =. For example: <a href="/project/faces/test1.jsp?param1=value1&param2=value2}>
Properties and All Attributes views
The Properties view for a component shows the most common set of attributes you can set on a component, and, depending on the component, you might also see options for adding controls, actions, or other components. To open the Properties view, click
Window | Show View | Properties.
These common attributes for the Parameter sub tag:
The All Attributes view shows a table of all the attributes you can set on a component, which includes those attributes you can access from the Properties view. To switch to the All Attributes view, click the
All Attributes icon in the upper right corner of the Properties view.
Table 1. Parameter attributes Attribute name
Description
binding
An expression that binds the component's instance (usually a user interface component) to a bean property (usually in the backing file).
id
Assigns a name to a component. Should be a unique name within a JSP.
name
Specifies a name for the component, should be unique within a JSP.
value
Specifies the initial text value for the component displayed at runtime. Contains information to be displayed, in the form of a specified value or a pointer to a dynamic value.