Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1510

SerializableListDataModel should extend ListDataModel for primefaces sorting support

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0.M1
    • Component/s: JSF
    • Labels:
      None

      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

            Activity

              People

              Assignee:
              pwebb Phil Webb
              Reporter:
              nicolas.chapon Nicolas Chapon
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: