public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, ScrollableDataTableRendererState state) throws IOException {
int cell_index = state.getCellIndex();
String client_id = state.getClientId();
footerCellTemplate = getFooterCellTemplate();
ComponentVariables variables = ComponentsVariableResolver.getVariables(footerCellTemplate, column);
variables.setVariable("client_id", client_id);
variables.setVariable("cell_index", new Integer(cell_index));
variables.setVariable("footerColumnClass", state.getColumnClass());
Boolean sorting = getColumnSorting(state.getGrid(), column.getId());
if (sorting != null) {
if (sorting.booleanValue()) {
variables.setVariable("footerColumnSortClass", "rich-sdt-footer-sort-up");
} else {
variables.setVariable("footerColumnSortClass", "rich-sdt-footer-sort-down");
}
}
UIComponent component = column.getFacet(FOOTER_PART);
if(component != null){
footerCellTemplate.encodeBegin(context, column);
renderChild(context, component);
footerCellTemplate.encodeEnd(context, column);
}
}
};