Using the Core Tags
The tags included in the JavaServer Faces core tag library are used to perform core actions that are independent of a particular render kit. These tags are listed in Table 18-1.
Table 18-1 The jsf_core Tags Tag Categories Tags Functions Event-handlingtagsactionListener
Registers an action listener on a parent componentvalueChangeListener
Registers a value-change listener on a parent component Attributeconfiguration tagattribute
Adds configurable attributes to a parent component Data conversion tags converter Registers an arbitrary converter on the parent componentconvertDateTime
Registers aDateTime
converter instance on the parent componentconvertNumber
Registers aNumber
converter instance on the parent component Facet tagfacet
Signifies a nested component that has a special relationship to its enclosing tag Localization tagloadBundle
Specifies aResourceBundle
that is exposed as aMap
Parametersubstitution tagparam
Substitutes parameters into aMessageFormat
instance and adds query string name-value pairs to a URL Tags for representing items in a list selectItem Represents one item in a list of items in aUISelectOne
orUISelectMany
component selectItems Represents a set of items in aUISelectOne
orUISelectMany
component Container tagsubview
Contains all JavaServer Faces tags in a page that is included in another JSP page containing JavaServer Faces tags Validator tagsvalidateDoubleRange
Registers aDoubleRangeValidator
on a componentvalidateLength
Registers aLengthValidator
on a componentvalidateLongRange
Registers aLongRangeValidator
on a componentvalidator
Registers a custom validator on a component Output tagverbatim
Generates aUIOutput
component that gets its content from the body of this tag Containerfor formtagsview
Encloses all JavaServer Faces tags on the pageThese tags are used in conjunction with component tags and are therefore explained in other sections of this tutorial. Table 18-2 lists the sections that explain how to use specific
jsf_core
tags.
Table 18-2 Where the jsf_core Tags Are Explained Tags Where Explained Event-handling tags Data conversion tagsfacet
loadBundle
param
selectItem and selectItems subviewverbatim
view
Validator tags