0% found this document useful (0 votes)
2 views

JSF_Tags_Reference

This document provides a reference for JSF (JavaServer Faces) tags, categorized into three sections: Core Tags, HTML Tags, and Facelets Tags. Each section lists various tags along with their functionalities, such as creating forms, handling events, and defining templates. The document serves as a quick guide for developers working with JSF to understand and utilize these tags effectively.

Uploaded by

Harshil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

JSF_Tags_Reference

This document provides a reference for JSF (JavaServer Faces) tags, categorized into three sections: Core Tags, HTML Tags, and Facelets Tags. Each section lists various tags along with their functionalities, such as creating forms, handling events, and defining templates. The document serves as a quick guide for developers working with JSF to understand and utilize these tags effectively.

Uploaded by

Harshil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JSF (JavaServer Faces) Tags Reference

1. JSF Core Tags (xmlns:f)


 <f:view> - Root element for JSF page.
 <f:actionListener> - Registers an action listener.
 <f:valueChangeListener> - Registers a value change listener.
 <f:facet> - Defines a named facet.
 <f:loadBundle> - Loads a resource bundle.
 <f:param> - Adds a parameter to a component.
 <f:converter> - Registers a converter.
 <f:validator> - Registers a validator.
 <f:attribute> - Adds attribute to component.
 <f:event> - Registers an event handler.
 <f:metadata> - Used to enclose metadata for a view.
 <f:viewParam> - Declares a parameter for the view.
 <f:ajax> - Enables AJAX behavior on a component.

2. JSF HTML Tags (xmlns:h)


 <h:form> - Creates an HTML form.
 <h:inputText> - Single-line text input field.
 <h:inputTextarea> - Multi-line text area input field.
 <h:inputSecret> - Password input field.
 <h:commandButton> - Button that submits form.
 <h:commandLink> - Hyperlink that submits form.
 <h:outputText> - Displays read-only text.
 <h:outputLabel> - Labels a component.
 <h:panelGrid> - Renders a table layout.
 <h:panelGroup> - Groups components without rendering HTML.
 <h:selectOneMenu> - Dropdown list for single selection.
 <h:selectOneRadio> - Radio button list.
 <h:selectBooleanCheckbox> - Checkbox for boolean input.
 <h:selectManyCheckbox> - Multiple selection checkboxes.
 <h:message> - Displays validation message for one component.
 <h:messages> - Displays all validation messages.
 <h:graphicImage> - Displays an image.
 <h:link> - HTML link.
 <h:button> - Non-submitting HTML button.

3. Facelets Tags (xmlns:ui)


 <ui:composition> - Defines a composition template.
 <ui:insert> - Inserts a template content.
 <ui:define> - Defines content for a named template section.
 <ui:include> - Includes content from another Facelet.
 <ui:param> - Passes parameters to Facelets.
 <ui:repeat> - Repeats content like a loop.

You might also like