FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled

前端 未结 3 505
广开言路
广开言路 2020-12-09 13:59

I am trying to learn PF so I started with displaying datatable first and navigating to next page on rowClick passing parameters, but got stuck with the following error. I fo

3条回答
  •  执念已碎
    2020-12-09 14:22

    Ensure to set the rowKey parameter in the bean method that populates the "value=.." of the datatable. Mine returned this error because the rowKey was null.

提交回复
热议问题