The tags included in the JavaServer Faces core tag library are used to perform core actions that are not performed by HTML tags.
Table 10-8 lists the event-handling core tags.
Table 10-8 Event-Handling Core Tags
Tag FunctionAdds 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 10-9 lists the data-conversion core tags.
Table 10-9 Data-Conversion Core Tags
Tag FunctionAdds an arbitrary converter to the parent component
Adds a DateTimeConverter
instance to the parent component
Adds a NumberConverter
instance to the parent component
Table 10-10 lists the facet core tags.
Table 10-10 Facet Core Tags
Tag FunctionAdds a nested component that has a special relationship to its enclosing tag
Registers a facet
on a parent component
Table 10-11 lists the core tags that represent items in a list.
Table 10-11 Core Tags That Represent Items in a List
Tag FunctionRepresents one item in a list of items
Represents a set of items
Table 10-12 lists the validator core tags.
Table 10-12 Validator Core Tags
Tag FunctionAdds a DoubleRangeValidator
to a component
Adds a LengthValidator
to a component
Adds a LongRangeValidator
to a component
Adds a custom validator to a component
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 10-13 lists the core tags that fall into other categories.
Table 10-13 Miscellaneous Core Tags
Tag Category Tag FunctionAttribute configuration
Adds configurable attributes to a parent component
Localization
Specifies a ResourceBundle
that is exposed as a Map
Substitutes parameters into a MessageFormat
instance and adds query string name-value pairs to a URL
Ajax
f:ajax
Associates an Ajax action with a single component or a group of components based on placement
Event
f:event
Allows installing a ComponentSystemEventListener
on a component
These tags, which are used in conjunction with component tags, are explained in other sections of this tutorial.
Table 10-14 lists the sections that explain how to use specific core tags.
Table 10-14 Where the Core Tags Are Explained
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3