26.6. JSF Components

This section introduces some of the JSF components featured in the Palette (Fig. 26.9). Figure 26.16 summarizes some of the JSF components used in the chapter examples.

Figure 26.16. Commonly used JSF components.
JSF ComponentsDescription
LabelDisplays text that can be associated with an input element.
Static TextDisplays text that the user cannot edit.
Text FieldGathers user input and displays text.
ButtonTriggers an event when clicked.
HyperlinkDisplays a hyperlink.
Drop Down ListDisplays a drop-down list of choices.
Radio Button GroupGroups radio buttons.
ImageDisplays images (e.g., GIF and JPG).

26.6.1. Text and Graphics Components

Figure 26.17 displays a simple form for gathering user input. This example uses all the components ...

Get Java™ How to Program, Seventh Edition 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.