First Row of the h:panelGrid
In this application, we demonstrate several new elements and attributes. The first new element is the h:outputText element (line 19; from the JSF HTML Tag Library), which inserts text in the page. In this case, we insert a literal string ("Name:") that is specified with the element’s value attribute.
The h:inputText element (lines 20–25) displays a text box in which the user can enter a name. We’ve specified several attributes for this element:
• id—This enables other elements or server-side code to reference this element.
• required—Ensuring that the user has made a selection or entered some text in a required input element is a basic type of validation. When set to "true", this attribute specifies that the element ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access