p:dataTable selections are lost after paginating a LazyDataModel

后端 未结 5 1322
春和景丽
春和景丽 2021-01-04 00:31

My problem is that after I\'ve selected a few items on the 1st page, if I paginate to another page and come back, my initial selections are not shown. I\'ve tried to impleme

5条回答
  •  梦毁少年i
    2021-01-04 01:15

    I had the same problem with my data table. Although my case is a bit different because I am using selectBooleanCheckbox instead. I found a simple solution that works for me. It hit me when you said "old selection are not rendered in the table".

    • strap the checkbox with a a4j:support event

    code:

    
        
    
    

提交回复
热议问题