Re: Objectgraph question
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