Name
<h:column>
Synopsis
This action represents an instance
of
the component type registered with the type ID
javax.faces.Column
(by default, an instance of the
javax.faces.component.UIColumn
class). A component
of this type is rendered by its parent so the action
doesn’t associate the component with a renderer.
A column component is used typically as a child of a
javax.faces.component.UIData
component and
represents a single column of tabular data. It can be equipped with a
header
and a footer
facet for a
column header and footer. Its children are used to process the
column’s data.
Syntax
<h:column [id="id
"] [binding="componentBinding
"] [rendered="true
|false"] > [<f:facet name="header">...</facet>] [<f:facet name="footer">...</facet>]JSF component action elements
</h:column>
Attributes
Attribute name |
Java type |
EL expression type |
Description |
binding |
String |
VB |
Must be a value binding expression for a property the component is bound to. |
id |
String |
None |
The component ID. |
rendered |
boolean |
Any |
If set to |
Example
<h:dataTable value="#{reportHandler.currentReports}" var="report"><h:column rendered="#{reportHandler.showDate}">
<f:facet name="header"> <h:outputText value="Date" /> </f:facet> <h:outputText value="#{report.date}" /></h:column>
... </h:dataTable>
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.