I have the following code
taskDataProvider = new ListDataProvider<TaskHeader>();
taskDataProvider.addDataDisplay(taskTable);
ListHandler<TaskHeader> columnSortHandler = new ListHandler<TaskHeader>(
taskDataProvider.getList());
taskTable.addColumnSortHandler(columnSortHandler);
//Some other code that modifies the list in taskDataProvider
When I click on the column header the ColumnSortEvent is fired but upon inspection I can see that the list in columnSortHandler is empty. Any modifications made to the taskDataProvider list have not been reflected in columnSortHandler. Am I missing something?