There are several ways to display the header.
For simple column headers, use the attribute label
of
<tc:column>
.
For more complex header which span over columns and/or rows please go to the
Tag Library Documentation:
A sheet with six rows. The name of the columns is set by the label
attribute.
<tc:sheet value="\#{sheetController.solarList}" var="object" rows="6">
<tc:column label="Name">
<tc:out value="\#{object.name}"/>
...
A sheet with ten rows and a maximal height of 500px. The header is scrollable.
To get a scrolling header, you have to set a maximal height and the width of all columns must be calculated automatically.
<tc:sheet value="\#{sheetController.solarList}" var="object" rows="10">
<tc:style maxHeight="500px"/>
...
A sheet with ten rows and a maximal height of 500px. The header is static.
To get a static header, you have to set a maximal height and the
columns
attribute must be used to set the width of the columns manually.
<tc:sheet value="\#{sheetController.solarList}" var="object" rows="10"
columns="3*;80px;20%;2*;1*">
<tc:style maxHeight="500px"/>
...