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

后端 未结 6 1330
说谎
说谎 2020-12-06 09:26

I was trying to implement one DataTable Editable with RowSelection enabled.

But it is throwing out an exception:

DataModel must implement org.

6条回答
  •  难免孤独
    2020-12-06 10:09

    You can get this error if you try to add a new item to the underlying list and forget to assign a value to the new item's rowKey (the rowKey is null).

提交回复
热议问题