Skip to content

Commit

Permalink
fixing MID-3137
Browse files Browse the repository at this point in the history
changing page size on Select object(s)
  • Loading branch information
katkav committed Jun 16, 2016
1 parent 4cd17c2 commit 18af4e3
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -256,11 +256,13 @@ protected void onPageChanged(AjaxRequestTarget target, long page) {
protected void pageSizeChanged(AjaxRequestTarget target) {
Table table = findParent(Table.class);
UserProfileStorage.TableId tableId = table.getTableId();

PageBase page = (PageBase) getPage();
Integer pageSize = page.getSessionStorage().getUserProfile().getPagingSize(tableId);

table.setItemsPerPage(pageSize);

if (tableId != null) {
PageBase page = (PageBase) getPage();
Integer pageSize = page.getSessionStorage().getUserProfile().getPagingSize(tableId);

table.setItemsPerPage(pageSize);
}
target.add(findParent(PagingFooter.class));
target.add((Component) table);
}
Expand Down

0 comments on commit 18af4e3

Please sign in to comment.