Xavax Custom JSF Library | Tag Index Overview |
The x:header
tag encloses one or more rows
comprising the header of a table.
If the x:header
or
x:footer
tags are used,
the x:body
tag
should also be used to enclose the body of the table.
Inherited Attributes | |
Core Attributes | inherited from AbstractTag |
Table Element Attributes | inherited from TableElementTag |
Example |
<x:table alignment="center" borderWidth="2"> <x:header> <x:row> <x:heading> <h:outputText value="First Name"/> </x:heading> <x:heading> <h:outputText value="Last Name"/> </x:heading> </x:row> </x:header> <x:body> <x:row> <x:column> <h:outputText value="Mario"/> </x:column> <x:column> <h:outputText value="Andretti"/> </x:column> </x:row> <x:row> <x:column> <h:outputText value="James"/> </x:column> <x:column> <h:outputText value="Clark"/> </x:column> </x:row> <x:row> <x:column> <h:outputText value="Emmerson"/> </x:column> <x:column> <h:outputText value="Fittipaldi"/> </x:column> </x:row> <x:row> <x:column> <h:outputText value="Mika"/> </x:column> <x:column> <h:outputText value="Hakkinen"/> </x:column> </x:row> <x:row> <x:column> <h:outputText value="Ayrton"/> </x:column> <x:column> <h:outputText value="Senna"/> </x:column> </x:row> </x:body> <x:footer> <x:row> <x:heading> <h:outputText value="First Name"/> </x:heading> <x:heading> <h:outputText value="Last Name"/> </x:heading> </x:row> </x:footer> </x:table>
The preceeding example produces the following table.
First Name | Last Name |
---|---|
Mario | Andretti |
James | Clark |
Emmerson | Fittipaldi |
Mika | Hakkinen |
Ayrton | Senna |
First Name | Last Name |