writer);
}
public void encodeNoDataRow(FacesContext context,
UIComponent component) throws IOException {
UIDataTable table = (UIDataTable) component;
ResponseWriter writer = context.getResponseWriter();
int numberOfColumns = getColumnsCount(table) + 1;
writer.startElement(HTML.TR_ELEMENT, table);
writer.writeAttribute(HTML.id_ATTRIBUTE, table.getBaseClientId(context)
+ ":noDataRow", null);
writer.writeAttribute(HTML.class_ATTRIBUTE, "extdt-noData-row " + getRowSkinClass(), null);
writer.startElement(HTML.td_ELEM, table);
writer.writeAttribute(HTML.class_ATTRIBUTE,
"extdt-noData-cell " + getCellSkinClass(), null);
writer.writeAttribute("colspan", numberOfColumns, null);
String label = (String)table.getAttributes().get("noDataLabel");
if ((label == null) || (label.length() == 0)) {
label = ComponentMessageUtil.getMessage(context, MSG_NODATA, new Object[] {}).getSummary();
}
writer.writeText(label, null);
writer.endElement(HTML.td_ELEM);