The data grid allows users to sort, filter, manipulate, and page
through data. You bind the data grid to a client data object and define properties
to determine how each column, row, and cell performs. For example, you may
want to display the employees in a department. In this scenario, your page
data object and client data object return a list of employees.
Use the following steps to put a Data Grid on a JSP page.
- In the Web perspective, open your JSP page and the Faces Client
Components drawer from the palette.
- Drag theData Grid control onto the JSP page.
- From the Client Data view, select and drag a list property to the
Data Grid component. This step binds the Client Data to the Data Grid
- Select the Data Grid component on the JSP page.
- Go to the Properties view.
- On the odc:datagrid tab, set the number of rows to display per
page, specify if rows can be added or deleted, specify a style, and specify
if the header and footer navigation bars are shown.
- On the Columns tab, specify which columns to display, such as first
name, last name, phone, or salary, the width of the column, and a column label.
- On the Column details tab, specify how the data in a column is
formatted, for example, number, date, string.
- Save and run the JSP page on a test server when you have finished
Note: Some Faces Client Components and Client
Data have been deprecated and are not recommended for use.
The following
have been deprecated and are not recommended for use:
- Client Data and its associated tooling (such as the Client Data view)
- Faces Client Components
- <odc:dataGrid> (Data Grid)
- <odc:webService> (Web Service)
- <odc:clientData>
- <odc:clientBinder>