You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Michael Gentry (Yes, I'm a Contractor)" <mi...@fanniemae.com> on 2006/01/04 22:21:16 UTC

Note to Cayenne/Tapestry users ...

I've been converting an application which uses Tapestry 3/Cayenne to
Tapestry 4 (and Cayenne, of course).  In the process, I've been trying to
get rid of all of the deprecated components (ActionLink, Conditional,
Foreach, etc).

I replaced one of the Foreach components with the new For component and it
caused issues for me.  I had a persistent List of Cayenne objects and
Tapestry, with the new For component, would serialize/deserialize them
(apparently in the HTML), which creates a HOLLOW Cayenne object
disassociated from it's DataContext.  (It also produced some bizarre HTML in
the hidden INPUT section -- kept repeating a For_0 variable, but with
different values.)  This, of course, caused the code to fail.

After looking through the docs, we added the volatile="true" attribute and
it made For work more like the old Foreach and everything was fine again.

Just thought I'd share in case other Cayenne/Tapestry users are going
through a similar conversion.

/dev/mrg
-- 
I'm Victor. I'm the cleaner.



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org