Re: You crossed editing context boundaries...
Re: You crossed editing context boundaries...
- Subject: Re: You crossed editing context boundaries...
- From: "Ricardo J. Parada" <email@hidden>
- Date: Tue, 14 Oct 2008 20:06:00 -0400
It looks like you got the employee object using the session's default editing context. And you are saying that your PaginaUsuario creates its own editing context in the constructor. So there you have it: two different editing contexts.
I would modify your setEmp() method in the PaginaUsuario that you make a copy of the emp object passed in to the editing context used in that page. Something like this:
public void estEmp(Employee anEmp) { emp = anEmp.localInstanceIn(myEC); }
Then your registerTurns() method is yet creating another editing context. Shouldn't that be also myEC?? |
_______________________________________________
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