Using Core Tags
The tags included in the JavaServer Faces core tag library are used to perform core actions that are not performed by HTML tags.
Table 7-8 lists the event handling core tags.
Tag |
Function |
---|---|
Adds an action listener to a parent component |
|
f:phaseListener |
Adds a PhaseListener to a page |
f:setPropertyActionListener |
Registers a special action listener whose sole purpose is to push a value into a managed bean when a form is submitted |
Adds a value-change listener to a parent component |
Table 7-9 lists the data conversion core tags.
Tag |
Function |
---|---|
Adds an arbitrary converter to the parent component |
|
Adds a DateTimeConverter instance to the parent component |
|
Adds a NumberConverter instance to the parent component |
Table 7-10 lists the facet core tags.
Tag |
Function |
---|---|
Adds a nested component that has a special relationship to its enclosing tag |
|
Registers a facet on a parent component |
Table 7-11 lists the core tags that represent items in a list.
Tag |
Function |
---|---|
Represents one item in a list of items |
|
Represents a set of items |
Table 7-12 lists the validator core tags.
Tag |
Function |
---|---|
f:validateRegEx |
Adds a RegExValidator to a component |
f:validateBean |
Delegates the validation of a local value to a BeanValidator |
f:validateRequired |
Enforces the presence of a value in a component |
Table 7-13 lists the core tags that fall into other categories.
These tags, which are used in conjunction with component tags, are explained in other sections of this tutorial. Table 7-14 lists the sections that explain how to use specific core tags.
Tags |
Where Explained |
---|---|
Event handling tags |
|
Data conversion tags |
|
f:facet |
Using Data-Bound Table Components and Laying Out Components with the h:panelGrid and h:panelGroup Tags |
f:loadBundle |
|
f:metadata |
|
f:param |
|
f:selectItem and f:selectItems |
|
Validator tags |
|
f:ajax |