}
public void columnSelected(IRequestCycle objCycle)
{
Object[] arrArgs = objCycle.getServiceParameters();
ComponentAddress objAddr = (ComponentAddress) arrArgs[0];
String strColumnName = (String) arrArgs[1];
ITableModelSource objSource =
(ITableModelSource) objAddr.findComponent(objCycle);
ITableModel objModel = objSource.getTableModel();
ITableSortingState objState = objModel.getSortingState();
if (strColumnName.equals(objState.getSortColumn()))
objState.setSortColumn(strColumnName, !objState.getSortOrder());