RE: EditingContext problem
RE: EditingContext problem
- Subject: RE: EditingContext problem
- From: <email@hidden>
- Date: Thu, 22 Apr 2004 09:36:06 +0200
- Thread-topic: EditingContext problem
> EOUtilities is your friend:
Sorry, I can't let this stand as is. EOUtilities is pure evil:
- It mixes EOControl & EOAccess utility methods in one single class. This actually should prohibit its use from within the EOControl layer - that includes EOs. What a shame! Worse it tempts developers introduce a reverse dependancy between EOControl & EOAccess.
- It's API is polluted by its historic background. Many of the methods taking an EOEditingContext for argument could do without.
Solution: reimplement the pure EOControl utility methods in a class of your own.
Pierre
-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of David LeBer
Sent: Tuesday, April 20, 2004 11:08 PM
To: James Cicenia
Cc: Apple Webobjects List List
Subject: Re: EditingContext problem
EOUtilities is your friend:
EOEnterpriseObject eo = EOUtilities.localInstanceOfObject(peerEC,
object);
On 20-Apr-04, at 4:51 PM, James Cicenia wrote:
> Hello all -
>
> I have put my editing popup windows in their own peer contexts.
> However, when I populate and save with an object that is stored
> in my Session, the editing contexts are out of sync and I get a big
> error.
>
> I for instance, save the user after login into the session.. however,
> the user comes from the defaultEditingContext. When I go to create/edit
> my other object in a popup with a new EC, it doesn't like the user
> which is in a different context.
>
> How do I solve this conundrum?
>
> Thanks again,
> James Cicenia
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
>
>
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.