In this tutorial you will learn about the tags of JSF html tag library that are used in to develop JSF applications.
JSF 2 html Tag Library
In this tutorial you will learn about the tags of JSF html tag library that are used in to develop JSF applications.
This tag library describes the JavaServer Faces component tags. In this library these tags are defined for all the UIComponent along with the HTML RenderKit Render combinations according to the JavaServer Faces specification definition.
Standard Syntax to use tags of JSF html tag library is as follows :
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
Syntax to use these tags in the XML pages is as follows :
<anyxmlelement xmlns:h="http://java.sun.com/jsf/html" />
In both of the above syntaxes 'h' is the prefix that means the tags will be used inside the pages by adding the prefix 'h' then the tag name followed by colon. for example <h:inputText>.
List of JSF html tag library :
- commandButton : This tag is translated into the HTML <input> element.
- commandLink : This tag is translated into the HTML anchor element (<a>) and on click this tag is acted like the submit button of a form.
- dataTable : This tag is translated into HTML <table> element.
- form : This tag is translated into the HTML <form> element.
- graphicImage : This tag is translated into the HTML <img> element.
- inputHidden : This tag is translated into the HTML <input type="hidden"> element.
- inputSecret : This tag is translated into the HTML <input type="secret"> element..
- inputText : This tag is translated into the HTML <input type="text">element.
- inputTextarea : This tag is translated into the HTML <textarea> element.
- message : This tag is used to display the single message for a particular component.
- messages : This tag is also used to display the messages but, it displays all the messages for a component.
- button : This tag is translated into the HTML <input type="button"> element.
- link : This tag is translated into the HTML anchor <a> element.
- body : This tag provides the instructions for the <body> element.
- outputFormat : This tag is used to supply the parameter's value of a componet.
- head : This tag is used to provide the instruction for <head> element.
- outputLabel : This tag is translated into the HTML <label> element.
- outputLink : This tag is translated into the anchor <a> element.
- outputText : This tag is used to show the output after translating the "value" attribute of a component.
- outputScript : This tag is used to provide the instructions for the <script> element.
- outputStylesheet : This tag is used to provide the instructions for the <link> element.
- panelGrid : This tag is translated into the HTML <table> element.
- panelGroup : This tag is proposed to used in case of if there can be only single child can be nested inside the UIComponent.
- selectBooleanCheckbox : This tag is translated into the HTML <input type="checkbox">
- selectManyCheckbox : This tag is translated into the HTML checkbox list.
- selectManyListbox : This tag is translated into the HTML <option> list.
- selectManyMenu : This tag is translated into the HTML <option> list.
- selectOneListbox : This tag is translated into the HTML <option> list.
- selectOneMenu : This tag is translated into the HTML <option> list.
- selectOneRadio : This tag is translated into the HTML <input type="radio"> element set.
- column : This tag is used for rendering the UIComponent which acted as an individual column of data inside a parent UIData component.
[ 0 ] Comments