neonzebra
26 Aug 2008, 4:08 PM
I've extended the Table component and overriden onSelectChange(), but it doesn't get triggered at all when a row is selected/deselected.
My code looks something like this:
Table myTable = new Table(myColumnModel) {
public void onSelectChange(TableItem item, boolean select) {
com.google.gwt.core.client.GWT.log("select:" + item,null);
super.onSelectChange(item,select);
}
};
I've also tried creating a true subclass with the same results.
The reason for this is to remember selections between table pages. (I'm using a PagingToolbar like the explorer examples). What I'm planning to do is to track all the selections in a separate list.
Am I going about this in the correct way? I've also tried overriding TableSelectionModel with similar results....
My code looks something like this:
Table myTable = new Table(myColumnModel) {
public void onSelectChange(TableItem item, boolean select) {
com.google.gwt.core.client.GWT.log("select:" + item,null);
super.onSelectChange(item,select);
}
};
I've also tried creating a true subclass with the same results.
The reason for this is to remember selections between table pages. (I'm using a PagingToolbar like the explorer examples). What I'm planning to do is to track all the selections in a separate list.
Am I going about this in the correct way? I've also tried overriding TableSelectionModel with similar results....