Re: disposing components
Re: disposing components
- Subject: Re: disposing components
- From: Sacha Mallais <email@hidden>
- Date: Sat, 11 Jun 2005 10:26:32 -0700
On Jun 10, 2005, at 10:09 PM, Nathan Dumar wrote:
On Jun 10, 2005, at 6:03 PM, Sacha Mallais wrote:
... And yet another [way] would be to cache the page, but
instantiate a new EC when/if the user back tracks.
Would you mind elaborating on that (ie how it's done)? Seems
pretty straightforward and simple ... I should probably know how to
do that by now, but I don't.
Well, since you null the EC when it goes to sleep, you can just use
lazy initialization to recreate the EC, fault in the same EO(s) that
you were editing in the first place (stored, presumably, in an ivar)
and you're off to the races. Page caching happens automatically. Of
course, YMMV...
It's probably easier to just let WO do your work for you... :-)
sacha
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden