In this tutorial you will learn about the tags of JSF core library that are used in to develop JSF applications.
JSF 2.0 core tag library
In this tutorial you will learn about the tags of JSF core library that are used in to develop JSF applications.
JSF core tags specifies the independent custom actions from the any peculiar RenderKit.
The Standard Syntax to use the JSF core tag is as follows :
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
List of JSF core tags are as follows :
-
actionListener : This tag is used to register an
ActionListener instance for the UIComponent which is closely linked with the
parent UIComponent custom action.
- attribute : This tag is used to add the attribute to UIComponent which is closely linked with the parent UIComponent custom action.
-
convertDateTime : This tag is used to register the
DateTimeConverter instance for the UIComponent which is closely linked with the
parent UIComponent custom action.
-
convertNumber : This tag is used to register the
NumberConverter instance for the UIComponent which is closely linked with the
parent UIComponent custom action.
- converter : This tag is used to register a instance of Converter for the UIComponent which is closely linked with the parent UIComponent custom action.
- ajax : This tag is used to register the instance of
AjaxBehavior for the single or more UIComponents which has implemented the
ClientBehaviorHolder interface.
- event : This tag is used to permit the page authors to install instances of ComponentSystemEventListener on a page component.
- facet : This tag is used to register a distinct element (by assigning a name) for the UIComponent which is closely linked with the parent UIComponent custom action.
- metadata : This tag is used to declare the metadata for a view that must be a child of <f:view> tag.
- loadBundle : This tag is used for loading a resource bundle.
- param : This tag is used for adding a child UIParameter
component for the UIComponent which is closely linked with the parent
UIComponent custom action.
- viewParam : This tag is used inside the view metadata facet to define the UIViewParameter in your view.
- phaseListener : This tag registers the instance of PhaseListener to the UIVewRoot into which this tag is nested.
- selectItem : This tag is used for adding a child
UISelectItem component for the UIComponent which is closely linked with the
parent UIComponent custom action.
- selectItems : This tag is used for adding the sub(child)
component UISelectItems for the UIComponent which is closely linked with the
parent UIComponent custom action
. -
setPropertyActionListener : This tag is used to register an ActionListener instance for the UIComponent which is closely linked with the
parent UIComponent custom action. An instance of this listener is registered
when a "value" attribute has been assigned a value and this value is set into
the ValueExpression given by the "target" attribute.
- subview : This tag specifies the container action on all
the JSF core and custom component actions that are used through <jsp:include> in
a nested page or the page of the same context that are dynamically included by
the custom actions, for example <c:import> core tag of JSTL (JavaServer pages
Standard Tag Library).
-
validateDoubleRange : This tag is used to validate the
range of double by registering the instance of DoubleRangeValidator for the
UIComponent which is closely linked with the parent UIComponent custom action.
-
validateLength : This tag is used to validate the length by
registering the instance of LengthValidator for the UIComponent which is closely
linked with the parent UIComponent custom action.
-
validateLongRange : This tag is used to validate the range
of long by registering an instance of LongRangeValidator for the UIComponent
which is closely linked with the parent UIComponent custom action.
- validateBean : This tag is used to validate the local value to the Bean validation API.
- validateRegex : This tag is used to validate the wrapping component by using the pattern attribute.
- validateRequired : This tag is used to validate the presence of the required attribute value to true.
- validator : This tag is used for registering an instance of
the Validator for the UIComponent which is closely linked with the parent
UIComponent custom action.
-
valueChangeListener : This tag is used to register an
instance of ValueChangeListener for the UIComponent which is closely linked with
the parent UIComponent custom action.
- view : This tag specifies as a container for all JSF core and custom component actions that are used on page.
[ 0 ] Comments