}
public void encodeExpansion(FacesContext context, DataTableRenderer renderer, DataTable table, int rowIndex) throws IOException {
ResponseWriter writer = context.getResponseWriter();
String rowIndexVar = table.getRowIndexVar();
RowExpansion rowExpansion = table.getRowExpansion();
String styleClass = DataTable.EXPANDED_ROW_CONTENT_CLASS + " ui-widget-content";
if(rowExpansion.getStyleClass() != null) {
styleClass = styleClass + " " + rowExpansion.getStyleClass();
}
table.setRowIndex(rowIndex);
if(rowIndexVar != null) {