| Xavax Custom JSF Library | Tag Index Overview |
The x:body tag encloses one or more rows
comprising the body of a table.
This tag is optional and only necessary when the table
uses the x:header
or x:footer tags.
| 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 |