shared EditingContext and WODisplayGroup
shared EditingContext and WODisplayGroup
- Subject: shared EditingContext and WODisplayGroup
- From: Michael Engelhart <email@hidden>
- Date: Sun, 25 Jul 2004 21:47:05 -0500
Hello -
I have a page where the results are read only and would be a good
candidate for a shared EC.
After not being able to find a method in WODisplayGroup to set the EC,
i stumbled across some info regarding WODisplayGroup's use of the .woo
file and I did some quick tests by adding this to my Application()
constructor:
sharedEditingContext =
EOSharedEditingContext.defaultSharedEditingContext();
takeValueForKey(sharedEditingContext, "sharedEditingContext");
Where sharedEditingContext is a protected field of type
EOSharedEditingContext.
Then in my .woo for the page with the WODisplayGroup I changed:
editingContext = session.defaultEditingContext;
to
editingContext = "application.sharedEditingContext";
This seems to work fine from the outside (i.e., there are no exceptions
being thrown and my page is working correctly in my limited testing but
I still feel like the .woo may not be meant for this level of
customization.
I would have preferred a method call but...
Thanks for any advice.
Michael
_______________________________________________
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.