Class SerializableListDataModel<T>

java.lang.Object
jakarta.faces.model.DataModel<E>
jakarta.faces.model.ListDataModel<T>
org.springframework.faces.model.SerializableListDataModel<T>
All Implemented Interfaces:
Serializable, Iterable<T>
Direct Known Subclasses:
ManySelectionTrackingListDataModel, OneSelectionTrackingListDataModel

public class SerializableListDataModel<T> extends jakarta.faces.model.ListDataModel<T> implements Serializable
A simple List-to-JSF-DataModel adapter that is also Serializable.
Author:
Jeremy Grelle, Phillip Webb
See Also:
  • Constructor Details

    • SerializableListDataModel

      public SerializableListDataModel()
    • SerializableListDataModel

      public SerializableListDataModel(List<T> list)
      Adapt the list to a data model;
      Parameters:
      list - the list
  • Method Details

    • getWrappedData

      public List<T> getWrappedData()
      Overrides:
      getWrappedData in class jakarta.faces.model.ListDataModel<T>
    • setWrappedData

      public void setWrappedData(Object data)
      Overrides:
      setWrappedData in class jakarta.faces.model.ListDataModel<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object