12. JSF Tag Reference
Contents > JSF Tag Reference > JSF HTML Tags
10. JSF HTML Tag Reference
Contents > JSF HTML Tag Reference > h:column
h:column |
|
The column tag renders a single column of data within a data table component. A column of data can contain any number of rows depending on the length of the array or list associated with the data table. See the dataTable tag for more information.
Example:
<h:dataTable value="#{itemBean.items}" var="item">
<h:column>
<h:outputText value="#{item}"></h:outputText>
</h:column>
</h:dataTable>
HTML Output
<table>
<tbody>
<tr><td>Item 1</td></tr>
<tr><td>Item 2</td></tr>
<tr><td>Item 3</td></tr>
</tbody>
</table>
|
Tag Attributes
| binding |
String |
| |
| The value-binding expression linking this component tag to a backing bean property. |
| id |
String |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| rendered |
String |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. |
|