Re: disposing components
Re: disposing components
- Subject: Re: disposing components
- From: Florijan Stamenkovic <email@hidden>
- Date: Fri, 10 Jun 2005 23:42:39 +0200
On Jun 10, 2005, at 19:17, Sacha Mallais wrote:
Your method will work. Of course, you don't have to discard the EC or
its contents. Just let the EC, its contents and the page reside in
the page cache until the page gets expired out of the cache, at which
point the EC will be disposed of automatically.
Yup, this is what I was wondering about. If it is going like that or if
that in-the-air-hanging ec should be manually disposed of.
This method allows user backtracking (edit stuff on page A, visit
page B in the middle of editing, go back and hit submit on page A).
Didn't consider it. But what is happening in my AddRecordPage component
in the disposePage() action is that I reset the ec and then sleep() is
disposing and setting the pointer to null (could do it all in the
disposePage() as well though). So, then that instance of the component
becomes unusable because it has a null pointer as it's editing context.
Well, the solution would be to disable component cashing??? Will look
into it...
Of course, if you're using the session EC, this method will not work.
Nope, component has it's own nested ec.
Thanks
Flor
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