29.6 Common JSF Components

As mentioned in Section 29.4, JSF supports several tag libraries. In this section, we introduce several of the JSF HTML Tag Library’s elements and one element from the JSF Core Tag Library. Figure 29.13 summarizes elements discussed in this section.

Fig. 29.13 Commonly used JSF components.

JSF component Description
h:form Inserts an XHTML form element into a page.
h:commandButton Displays a button that triggers an event when clicked. Typically, such a button is used to submit a form’s user input to the server for processing.
h:graphicImage Displays an image (e.g., GIF and JPG).
h:inputText Displays a text box in which the user can enter input.
h:outputLink Displays a hyperlink.
h:panelGrid

Get Java How to Program (early objects), 9/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.