columnClasses = new String[0];
}
int columnCounter = 0;
Iterator<UIColumn> columnIterator = table.columns();
while (columnIterator.hasNext()) {
UIColumn column = columnIterator.next();
if (column.isRendered()) {
writer.startElement(HtmlConstants.TD_ELEM, table);
Object width = column.getAttributes().get("width");
if (width != null) {
writer.writeAttribute("style", "width: " + HtmlDimensions.formatSize(width.toString()), null);
}
String columnClass;
if (columnClasses.length > 0) {
columnClass = HtmlUtil.concatClasses(cellClassName, columnClasses[columnCounter % columnClasses.length], column.getAttributes().get("styleClass"));
} else {
columnClass = HtmlUtil.concatClasses(cellClassName, column.getAttributes().get("styleClass"));
}
writer.writeAttribute("class", columnClass, null);
renderer.renderChildren(facesContext, column);
writer.endElement(HtmlConstants.TD_ELEM);
columnCounter++;