public void onPagingFailure(PagingFailureEvent event) {
loadingImage.setVisible(false);
errorLabel.setHTML(event.getException().getMessage());
}
});
table.addPageCountChangeHandler(new PageCountChangeHandler() {
public void onPageCountChange(PageCountChangeEvent event) {
setPageCount(event.getNewPageCount());
}
});
setPageCount(table.getPageCount());