On Jul 8, 2005, at 8:13 AM, Kevin Menard wrote:

Todd O'Bryan wrote:

How did you handle passing CayenneDataObjects around the Tapestry
application? The squeezer just lets you use them normally, handling
serialization and deserialization behind the scenes. Before I started
using it, I had to pass around ObjectIds and such to prevent my data
objects from thinking they were in different DataContexts and generally
being a pain.


I mostly did so via the Visit object and via setter methods on IPage
classes.  The only place I ever found I needed to pass ObjectIds was
with links with parameters.  Since I hardly use DirectLinks and for
external pages, I'd only want to pass the PK as the parameter anyway, I
never really had any issues.

That makes sense. I have links with parameters all over the place, so it got to be a pain. Now I can set the Object itself as the parameter and all the fetching and stuff happens behind the scenes.

Thank you, Robert!

Todd

Reply via email to