Yep, that's the problem. The unsqueezer needs a DataContext but it doesn't have access to anything (like the Visit) that refers to the DataContext.
The clue to the solution (for me anyway) was in this posting: http://marc.theaimsgroup.com/?l=tapestry-user&m=111758705509737&w=2 The current user's Visit is stored in a ThreadLocal at the start of each request, in Engine.setupForRequest(). He put it in a utility class called UserContext. Then the DataSqueezer.unsqueeze() method could get the Visit by calling UserContext.getVisit(). ----- Original Message ----- From: "Filip Balas" <[EMAIL PROTECTED]> To: "Tapestry users" <[email protected]> Sent: Thursday, July 07, 2005 9:49 PM Subject: Tapestry, Cayenne and Squeezer Has anybody been able to get the squeezer interface to work with Cayenne? It seems like it is impossible to make the Datacontext available to the datasqueezer. I can't get the visit class from the squeezer and that is where the context resides?!?!? I tried to use the global map to solve this problem except the map is not initialized until AFTER the squeezer is created. I am at my wits end. HELP! Filip --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
