Attribute sub tag

The <f:attribute> tag adds an attribute (name/value pair) to the parent tag. Primarily used to extend the default JSF implementation of a tag. It is used to add another attribute to the default implementation (usually to fix a bug in the default implementation).

 

Parent tags

This tag is used as a child of the following tags:

 

Rendering

The tag is rendered by its parent tag, see the parent tag descriptions for more information.

 

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 Attribute 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. Attribute attributes

Attribute name

Description

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.