... page. This element inserts an XHTML table in the page. The h: prefix indicates that panelGrid is from the JSF HTML Tag Library. The columns attribute specifies the number of columns in the table. The elements between the h:panelGrid’s start tag (line 17) and end tag (line 26) are automatically placed into the table’s columns from left to right in the order they appear in the JSF page. When the number of elements in a row exceeds the number of columns, the h:panelGrid creates a new row. We use the h:panelGrid to control the positions of the h:graphicImage and h:inputText elements in the user information section of the page. In this case, there are eight elements in the h:panelGrid, so the first four (lines 18–21) are placed in the table’s first ...

Get Java How to Program, Early Objects, 11th 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.