Hollow State in Tapestry app

From: Todd O'Bryan (toddobrya..ac.com)
Date: Sun Dec 12 2004 - 08:46:52 EST

  • Next message: Todd O'Bryan: "Re: Hollow State in Tapestry app"

    I'm using Cayenne 1.1 with Tapestry 3.0.1.

    Here's some debugging code:
    ------------------
    System.out.println("Forum is: " + theForum);
    System.out.println("Forum Name is: " + theForum.getName());
    System.out.println("Forum is: " + theForum);
    -----------------
    Here's the result:
    ----------------
    Forum is: {[]<oid: org.dupontmanual.cayenne.forums.Forum: <id: 260>;
    state: hollow>}

    Forum Name is: null
    Forum is: {[]<oid: org.dupontmanual.cayenne.forums.Forum: <id: 260>;
    state: hollow>}
    ---------------
    Apparently, this is the same problem noticed back with Tapestry 2.3, in
    that the DataObject gets serialized, but the DataContext (which is
    stored in the Visit) doesn't. Thus, the object doesn't get refetched.

    Unfortunately, the fix given in this mailing list thread

    http://www.objectstyle.org/cayenne/lists/cayenne-user/2003/02/0079.html

    won't work, because Tapestry no longer even has a DefaultValuePersister.

    I checked the tapestry example application, but didn't see something
    that looks like it should be handling this. Any help?

    Thanks,
    Todd



    This archive was generated by hypermail 2.0.0 : Sun Dec 12 2004 - 08:46:56 EST