• 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
Re: Objectgraph question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objectgraph question


  • Subject: Re: Objectgraph question
  • From: Arturo PĂ©rez <email@hidden>
  • Date: Sun, 23 Jul 2006 19:13:07 -0400

On Jul 23, 2006, at 10:52 AM, Guido Neitzer wrote:

Hi.

To begin with, I'm on a page where I display an object (EO), let it be a company. This page has a list, bound to a to many relationship of the company, e.g. staff. The list is build with a displayGroup and an EOArrayDatasource.

Now the problem: When I do nothing else, the "staff" list still shows my deleted object (okay, because I have my cached object with its "staff" instance method, which returns the array of staff members).

I ever used some weird workaround to ensure fresh data in such situations, but okay, what is the PREFERRED way of handling this?


I've had similar problems. My solutions boil down to knowing when to refresh the array backing the EOArrayDatasource. I think, worse case, I just compare the current array to the one I have and if they are different, I refresh. Not a scalable solution but it works in my situation for now.


-arturo

_______________________________________________
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: Objectgraph question
      • From: Guido Neitzer <email@hidden>
References: 
 >Objectgraph question (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: WWDC WO Meet Up List
  • Next by Date: Re: New T-Shirts
  • Previous by thread: Objectgraph question
  • Next by thread: Re: Objectgraph question
  • Index(es):
    • Date
    • Thread