UI-Component Sets
Project Documentation

Summary

Tag name: <h:column>
UIComponent class: javax.faces.component.html.HtmlColumn
Tag class: org.apache.myfaces.taglib.html.HtmlColumnTag
Component type: javax.faces.HtmlColumn
Component family: javax.faces.Column

Creates a UIComponent that represents a single column of data within a parent UIData component.

This tag is commonly used as a child of the h:dataTable tag, to represent a column of data within an html table. It can be decorated with nested "header" and "footer" facets which cause the output of header and footer rows.

The non-facet child components of this column are re-rendered on each table row to generate the content of the cell. Those child components can reference the "var" attribute of the containing h:dataTable to generate appropriate output for each row.

Supported Facets

Name Required Description
footer false
header false

Attributes

Name Type Supports EL? Description
binding javax.faces.component.html.HtmlColumn Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind " + "to this component instance. This value must be an EL expression.
footerClass String Yes CSS class to be used for the footer.
headerClass String Yes CSS class to be used for the header.
id String No Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
rowHeader boolean Yes If true the column is rendered with "th" and scope="row" attribute, instead "td"
styleClass String Yes