My problem is the same this link, and I found that primefaces's LazyDataModel executed getRowData(String rowKey) before load(params). Is there any problem if getRowData execute after load?
Asked
Active
Viewed 583 times
0
-
1I fail to see why you ask this question. – Kukeltje Feb 25 '18 at 10:03
-
I selected some items on one page, if i paginate to another page and come back, my initial selections are not shown. But if i call a back bean method with process the datatable, it will get the selections. Or if i use component update the datatable, the selections will shown. So i found the question. And i know if i retrieve item from database in getRowData, my selections will shown. So i think why getRowData is called before load, if load is called first, the getRowData could retrieve item by LazyDataModel.getWrappedData() instead of database. @Kukeltje – xmcx Feb 26 '18 at 06:01