Adding a header and footer to a data table
You can customize the way a data table displays on your Web page by adding a 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.
To add a header or footer to your data table:
- Select the data table on the Faces JSP page.
- In the Properties view for the data table, check Show header and Show footer. A header and footer are added to the data table. The header and footer are actually panel boxes into which you can drag other components. Note that a data table can have only one header and one footer.
- Add text or other Faces components to the header or footer. To add text, drag an Output or Output - Formatted Text component to the panel.
Related concepts
Data table components
Related tasks
Adding a data table
Managing columns in a data table
Adding paging to a data table
Enabling row selection for a data table
Associating actions with a data table
Related reference
Faces components reference
Faces attributes reference