• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
disposing components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: disposing components
      • From: Sacha Mallais <email@hidden>
  • Prev by Date: Re: ADC agreement violation
  • Next by Date: Re: ADC agreement violation
  • Previous by thread: Re: ADC agreement violation
  • Next by thread: Re: disposing components
  • Index(es):
    • Date
    • Thread