JSF provides a standard HTML tag library which are rendered into corresponding html output.
In order to use these these tags we need to use the following namespaces of URI in html node.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" >
The following are important Basic Tags in JSF 2.0.
Tag | Rendered To |
---|---|
h:inputText | HTML input of type="text", text box. |
h:inputSecret | HTML input of type="password", text box. |
h:inputTextarea | HTML textarea field. |
h:inputHidden | HTML input of type="hidden". |
h:selectBooleanCheckbox | Single HTML check box |
h:selectManyCheckbox | A group of HTML check boxes |
h:selectOneRadio | Single HTML radio button. |
h:selectOneListbox | Single HTML list box. |
h:selectManyListbox | Multiple HTML list box. |
h:selectOneMenu | HTML combo box. |
h:outputText | HTML text. |
h:outputFormat | HTML text |
h:graphicImage | HTML image. |
h:outputStylesheet | HTML CSS style sheet. |
h:outputScript | HTML script output. |
h:commandButton | HTML input of type="submit" button. |
h:Link | HTML anchor. |
h:commandLink | HTML anchor. |
h:outputLink | HTML anchor. |
h:panelGrid | HTML Table in form of grid. |
h:message | JSF message |
h:messages | Many JSF messages. |
f:param | Parameters for JSF UI Component. |
f:attribute | Attribute for a JSF UI Component. |
f:setPropertyActionListener | Sets value of a managed bean's property |