Data table components

The data table is a Faces component you can add to a Faces JSP page to display application data. It is a table-like control for displaying data from multiple database records. It consists of one or more columns, each with a header area and a data area. It is the data area of the column that repeats for each record.

You typically bind a data table to a record list or other data source, and the data table displays the data belonging to that record list. The data table contains columns, which act as containers for Faces components.

There are multiple ways to create a data table.

The data table offers great flexibility in how it is rendered on the user interface of your application. You can customize it in a variety of ways:

You can perform actions such as Read, Update, and Delete on the data displayed in a data table, and you can also create new data records. There are several ways to associate actions with a data table:

To learn more about creating and formatting data tables, do the following tutorial: Displaying dynamic information on Web pages with JavaServer Faces

 

Related concepts

Faces components
Data access for Faces components

 

Related tasks

Creating Faces applications - overview
Creating a connection to a relational database
header or footer. A header is displayed along the top of the data table and a footer along the bottom of the data table. You can drag other Faces components to the header and footer. For example, if you want a title for the table and an image next to the title, you can drag an Output component and an Image component to the header.">Adding a header and footer to a data table
Managing columns in a data table
Adding paging to a data table
Enabling row selection for a data table
Associating row actions with a data table
Adding row category support to a data table
Adding row edit to a data table
Passing parameters with a data table
Adding hyperlinks to a Faces JSP page

Related reference
Faces components reference
Faces attributes reference