protected void encodeRegularTable(FacesContext context, DataTable table) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("div", null); writer.writeAttribute("class", DataTable.TABLE_WRAPPER_CLASS, null); writer.startElement("table", null); writer.writeAttribute("role", "grid", null); if (table.getTableStyle() != null) writer.writeAttribute("style", table.getTableStyle(), null); if (table.getTableStyleClass() != null) writer.writeAttribute("class", table.getTableStyleClass(), null); if (table.getSummary() != null) writer.writeAttribute("summary", table.getSummary(), null); encodeThead(context, table); encodeTFoot(context, table); encodeTbody(context, table, false); writer.endElement("table"); writer.endElement("div"); }