First page Back Continue Last page Graphics


Setting Table Attributes (continued)

Row headers: The first column of a table can be rendered as a column of headers for the table rows. To use row headers, include the data for the row header text as the first column of the table and set the rowHeader attribute of the column to true.

Column groups (shows two name columns grouped into a Name column group. The individual columns retain their own column headers First and Last ): <af:table var="row"> <af:column headerText="Name"> <af:column headerText="First"> <af:outputText value="#{row.col1}"/> </af:column> <af:column headerText="Last"> <af:outputText value="#{row.col2}"/> </af:column> </af:column> </af:table>