Search code examples
gwtpaginationcelltable

GWT paginated cellTable reload to a specific page


I have a paginated cellTable , how can I reload the paginated cellTable and target it to a specific page? For example, I am viewing page 5, I click the reload button and give pageNo = 5 as a argument and after loading the pagination cellTable are still on page 5.


Solution

  • If you use an AsyncDataProvider and a SimplePager, you can simply:

    pager.setPage(5);