> If TableModel had an abstract clearCache method, I could make:
>
> myPagingGrid.getTableModel().clearCache();
> myPagingGrid.gotoPage(0, true);
>
> That would be more clean imho.
But it wouldn't, you see, because not all TableModels have caching.
You're trying to move a method higher up the inheritance chain where
it doesn't belong. The fact that your PST uses a caching TableModel is
an implementation detail of your application. You should extend or
encapsulate PST and your TableModel and provide/override a method in
that new object that handles clearing the cache before refreshing the
page.