Ah, didn't know that, sorry... I'm curious as the motivation for /not/ using datasqueezers?
Robert Howard Lewis Ship wrote: > The client property persistent manager doesn't use the data squeezer; > it always serializes a bunch of objects to a MIME64 stream. A > DataSqueezer is used for objects encoded as listener parameters or as > hidden form fields. > > On 11/1/05, Robert Zeigler <[EMAIL PROTECTED]> wrote: > >>Create a custom data squeezer for your object and register it. >> >>Robert >> >>Martin Strand wrote: >> >>>Hi. >>>I want to persist a large object on the client, but it would be much >>>better if I could just persist its id and then re-create it on the >>>server on each request. Can Tapestry do this for me? I could do it >>>myself, something like this: >>> >>>---- >>>private User user; >>> >>>public void detach() >>>{ >>> user = null; >>> super.detach(); >>>} >>> >>>public User getUser() >>>{ >>> if (user == null) >>> { >>> user = new User(getUserId()); >>> } >>> return user; >>>} >>> >>>@Persist("client:page") >>>public abstract int getuserId(); >>>---- >>> >>> >>> >>>But I'd prefer to let Tapestry do it for me, something like this: >>> >>>---- >>>@Persist("client:page") >>>public abstract User getUser(); >>>---- >>> >>>How could I make the second version understand that it only needs to >>>persist the user id? >>> >>>Thanks, >>>Martin >>> >>>--------------------------------------------------------------------- >>>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] >> >> > > > > -- > Howard M. Lewis Ship > Independent J2EE / Open-Source Java Consultant > Creator, Jakarta Tapestry > Creator, Jakarta HiveMind > > Professional Tapestry training, mentoring, support > and project work. http://howardlewisship.com > > --------------------------------------------------------------------- > 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]