this.encodeThead(context, table, 0, table.getColumns().size(), null);
}
protected void encodeThead(FacesContext context, DataTable table, int columnStart, int columnEnd, String theadId) throws IOException {
ResponseWriter writer = context.getResponseWriter();
ColumnGroup group = table.getColumnGroup("header");
List<UIColumn> columns = table.getColumns();
String theadClientId = (theadId == null) ? table.getClientId(context) + "_head" : theadId;
char separator = UINamingContainer.getSeparatorChar(context);
writer.startElement("thead", null);
writer.writeAttribute("id", theadClientId, null);
if(group != null && group.isRendered()) {
context.getAttributes().put(Constants.HELPER_RENDERER, "columnGroup");
for(UIComponent child : group.getChildren()) {
if(child.isRendered()) {
if(child instanceof Row) {
Row headerRow = (Row) child;
writer.startElement("tr", null);