Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

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 componentDescription
h:formInserts an XHTML form element into a page.
h:commandButtonDisplays 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:graphicImageDisplays an image (e.g., GIF and JPG).
h:inputTextDisplays a text box in which the user can enter input.
h:outputLinkDisplays a hyperlink.
h:panelGridDisplays an XHTML table element.
h:selectOneMenuDisplays a drop-down list of choices from which the user can make a selection.
h:selectOneRadioDisplays a set of radio buttons.
f:selectItemSpecifies an item in an h:selectOneMenu or h:selectOneRadio (and other similar components).



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial