if (AjaxRendererUtils.isAjaxRequest(context)) {
AjaxRendererUtils.addRegionsFromComponent(table, context);
}
// AjaxContext.getCurrentInstance().addComponentToAjaxRender(component);
if (sorting){
new ExtTableSortEvent(component).queue();
}
if (filtering){
new ExtTableFilterEvent(component).queue();
}
}
// GROUP COLUMNS
if (GROUP_FILTER_PARAMETER.equals(map.get(clientId))) {
String groupColumnId = map.get(GROUP_FILTER_PARAMETER);
// turn off grouping
table.disableGrouping();
if (groupColumnId != null) {
// turn off sorting by all columns
table.getSortPriority().clear();
for (Iterator<UIColumn> columns = table.getChildColumns(); columns
.hasNext();) {
UIColumn column = columns.next();
// child.setId(child.getId());
if (groupColumnId.equals(column.getClientId(context))) { // group
// by
// this
// column
// set sort order if is not set
if (column.getSortOrder().equals(Ordering.UNSORTED)) {
column.setSortOrder(Ordering.ASCENDING);
}
// set as grouping column
table.setGroupByColumn(column);
} else { // grouping is not by this column
// turn off sorting by this column
column.setSortOrder(Ordering.UNSORTED);
}
}// for columns
}// if
// AjaxContext.getCurrentInstance().addComponentToAjaxRender(component);
// AjaxContext.getCurrentInstance().addRenderedArea(clientId +
// ":tu");
new ExtTableSortEvent(component).queue();
}// group columns
// CHANGE COLUMN ORDER - DRAG AND DROP
String dragSourceId = (String) map
.get(org.richfaces.renderkit.DraggableRendererContributor.DRAG_SOURCE_ID);