tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Gonschorek (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAP5-1905) Not serializable: org.apache.tapestry5.tree.DefaultTreeExpansionModel - can't persist sessions across cluster
Date Sun, 15 Apr 2012 13:01:18 GMT
Not serializable: org.apache.tapestry5.tree.DefaultTreeExpansionModel - can't persist sessions
across cluster
-------------------------------------------------------------------------------------------------------------

                 Key: TAP5-1905
                 URL: https://issues.apache.org/jira/browse/TAP5-1905
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.3.2
            Reporter: Felix Gonschorek
            Priority: Minor


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":


///////////////////

package mycreon.core.model;

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;

}




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message