disposing components
disposing components
- Subject: disposing components
- From: Florijan Stamenkovic <email@hidden>
- Date: Fri, 10 Jun 2005 16:25:30 +0200
Hi all.
I have certain big components that use a private editing context, and
are used to add a variable amount of records. Those components are
however partial documents that use a PageWrapper that is also a navbar.
So, it is possible for a user to go to another part of the app in the
middle of adding records by using links/buttons in the PageWrapper. I
can use the actions in the PageWrapper to call a method in my
components to discard the ec and all it's contents, but don't know if
that is necessary. So, is there some behavior of WO that would require
such handling?
I use this mechanism:
private void disposeParent()
{
WOComponent parent = this.parent();
if(parent instanceof AddRecordsPage)
{
((AddRecordsPage)parent).disposePage(); //disposePage() method does
the disposing of the ec and records
}
}
TIA
Flor
_______________________________________________
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