Monday, July 20, 2009

JSF Html Tags

JSF HTML tags are divided into following category:

Inputs (inputText, inputTextarea)
Outputs (outputText, outputLabel)
Commands (commandButton)
Selections (selectOneRadio, selectOneListbox, selectOneMenu for radio buttons, list boxes, menu etc)
Layouts (panelGrid)
Data table (dataTable)
Errors and messages (message, messages)

Some examples have been given below to understand how to use these tags and its attributes:

 

In JSF Html Tag Library there are 25 core tags:

  • column creates column in a dataTable
  • commandButton creates button
  • commandLink creates link that acts like a pushbutton
  • dataTable creates a table control
  • form creates a form
  • graphicImage displays an image
  • inputHidden creates hidden field
  • inputSecret creates input control for password
  • inputText creates text input control (single line)
  • inputTextarea creates text input control (multiline)
  • message displays the most recent message for a component
  • messages displays all messages
  • outputFormat creates outputText, but formats compound messages
  • outputLabel creates label
  • outputLink creates anchor
  • outputText creates single line text output
  • panelGrid creates html table with specified number of columns
  • panelGroup used to group other components where the specification requires one child element
  • selectBooleanCheckbox creates checkbox
  • selectManyCheckbox creates set of checkboxes
  • selectManyListbox creates multiselect listbox
  • selectManyMenu creates multiselect menu
  • selectOneListbox creates single select listbox
  • selectOneMenu creates single select menu
  • selectOneRadio creates set of radio button

No comments:

Post a Comment