Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.3.2
Description
org.apache.tapestry5.tree.DefaultTreeExpansionModel is not serializable but used in a persisted field in the Tree component in tapestry-core.
If you want to persist your sessions to the filesystem or to database (for clustering) the serialization fails. the class contains only serializable values, so this can be fixed with adding the serializable interface to the DefaultTreeExpansionModel
as a quick fix one can extend the DefaultTreeExpansionModel and add the serializable interface and use this class with the Tree component parameter "expansionModel":
///////////////////
import java.io.Serializable;
import org.apache.tapestry5.tree.DefaultTreeExpansionModel;
public class SerializableTreeExpansionModel<T> extends DefaultTreeExpansionModel<T> implements Serializable
{ private static final long serialVersionUID = 88777116818436263L; }Attachments
Issue Links
- is related to
-
TAP5-1908 SeleniumTestCase should error for non-Serializable session attributes
- Open