Я использую SimplePager
, и я хочу показать 12 элементов (пользователей) на странице. Весь мой набор данных - 20 элементов.
Проблема в том, что первая страница (правильно) показывает пункты 1-12, но на второй странице показаны пункты 9-20. Я хочу, чтобы вторая страница отображала элементы 13-20.
Что пойдет не так?
Вот мой код:
CellTable<User> cellTable = new CellTable<User>();
SimplePager pager = new SimplePager(TextLocation.CENTER);
pager.setDisplay(cellTable);
pager.setPageSize(12);
ListDataProvider<User> dataProvider = new ListDataProvider<User>();<br>
dataProvider.setList(USERSList);
dataProvider.addDataDisplay(cellTable);
Заранее благодарю вас!