UIComponent uiComponent, String styleClass, boolean header)
throws IOException {
super.renderColumnChildHeaderOrFooterRow(facesContext, writer,
uiComponent, styleClass, header);
if (uiComponent instanceof UIColumns) {
UIColumns columns = (UIColumns) uiComponent;
for (int i = 0, size = columns.getRowCount(); i < size; i++) {
columns.setRowIndex(i);
if (header) {
renderColumnHeaderCell(facesContext, writer, columns,
columns.getHeader(), styleClass, 0);
}
else {
renderColumnFooterCell(facesContext, writer, columns,
columns.getFooter(), styleClass, 0);
}
}
columns.setRowIndex(-1);
}
}