In the previous chapter, we displayed database data using the JSF Data Table component. In this chapter, we will discuss JSF Panel Grid to add and retrieve data from a database with the JDBC API. We will also validate data as data is added to the database. A panel grid is a UIPanel
component represented by the javax.faces.HtmlPanelGrid
class and the h:panelGrid
tag. JDeveloper provides the Create PanelGrid Wizard to create a panel grid.
A panel grid displays a set of components in a specified number of columns. Only the number of columns needs to be specified in generating a panel grid; the number of rows is not required. The number of rows is based on the number of components in the grid and the number of columns in the grid. The components in a panel grid are added to the specified number of columns. A new panel grid row is started after the specified number of columns in a row have been allocated. For example, if the specified number of columns in...