Details
Description
Sorting with PrimeFaces Datatable always throw an exception with OneSelectionTrackingListDataModel because type is not javax.faces.model.ListDataModel but org.springframework.faces.model.SerializableListDataModel.
In PrimeFaces source code, DataHelper sort method throws an exception :
if(value instanceof List) { list = (List) value; } else if(value instanceof ListDataModel) { list = (List) ((ListDataModel) value).getWrappedData(); } else { throw new FacesException("Data type should be java.util.List or javax.faces.model.ListDataModel instance to be sortable."); }
Attachments
Issue Links
- is related to
-
SWF-1523 Upgrade booking-faces sample to PrimeFaces 3.1.1
-
- Resolved
-