×
☰ See All Chapters

JSF HTML Tags

Html tags of JSF library can be divided into following categories

  • Inputs (inputText, inputTextarea) 

  • Outputs (outputText, outputLabel) 

  • Commands (commandButton) 

  • Selections (selectOneRadio, selectOneListbox, selectOneMenu) 

  • Layouts (panelGrid) 

  • Data table (dataTable) 

  • Errors and messages (message, messages) 

Category

Tag

Description

Inputs

inputText

Single-line text input control

inputTextarea

Multiline text input control

inputSecret

Password input control

inputHidden

Hidden field

inputFile

File input control

Outputs

outputText

Single line text output

outputLabel

Label for another component for accessibility

outputLink

HTML anchor

outputScript

HTML element of the type "script" with type "text/javascript"

outputStylesheet

TML element of the type "link" with type "text/css"

outputFormat

Same as outputText, but formats compound messages

Commands

commandButton

Button: submit, reset or pushbutton

commandLink

Link that acts like pushbutton

Errors and messages

message

Displays most recent message from a component

messages

Display all messages

Layouts

panelGrid

HTML table

panelGroup

Two or more components that are laid out as one

Data table

dataTable  

A feature-rich table control

Column

Column in a dataTable

Selections

selectBooleanCheckbox

Checkbox

selectManyCheckbox

Set of checkboxes

selectManyListbox

Multiselect listbox

selectManyMenu

Multiselect menu

selectOneListbox

Single-select listbox

selectOneMenu

Single-select menu

selectOneRadio

Set of radi buttons

Image

graphicImage

Displays an image

Form

form

HTML form. This tag has no attributes. All JSF form submissions are implemented with the POST method.

JSF Common Attributes

Three types of tag attributes are shared among multiple HTML component tags:

  1. Basic attributes 

  2. HTML 4.0 Pass Through attributes 

  3. DHTML events attributes: HTML attributes that support scripting, such as onclick and onchange are called DHTML (dynamic HTML) event attributes. JSF supports DHTML event attributes for nearly all of the JSF HTML tags. 


All Chapters
Author