ColumnGroup group = table.getColumnGroup("header");
if (group != null && group.isRendered()) {
for (UIComponent child : group.getChildren()) {
if (child.isRendered() && child instanceof Row) {
Row headerRow = (Row) child;
writer.startElement("tr", null);
writer.writeAttribute("class", "ui-widget-header", null);
for (UIComponent headerRowChild : headerRow.getChildren()) {
if (headerRowChild.isRendered() && headerRowChild instanceof Column) {
Column footerColumn = (Column) headerRowChild;
encodeFacetColumn(context, table, footerColumn, "header", DataTable.COLUMN_HEADER_CLASS, footerColumn.getHeaderText());
}
}