• 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: Editing Context Sporadically not Reverting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing Context Sporadically not Reverting?


  • Subject: Re: Editing Context Sporadically not Reverting?
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 09 Aug 2011 12:53:21 -0700

Hi Andrew,

Have you gotten anywhere on this?


Chuck


On 2011-07-31, at 12:36 PM, Andrew Lindesay wrote:

> Hi there;
>
> I'm still trying to track this one down; getting closer to the source of the issue, sporadically the exception below (illogically) fires;
>
> - - - - -
>
> EOEditingContext ec = myEo.editingContext(); // actually default ec
>
> String newValue = <GEN RANDOM STRING>;
> myEo.setFoo(newValue);
>
> if(ec.updatedObjects().isEmpty())
> 	throw new IllegalStateException("...");
>
> - - - - -
>
> Has anybody got any ideas about what broadly happens between a value being set on an EO and the editing context's "updated objects" being populated?  -- this may give me some leads.
>
> cheers.
>
> -------- Original Message --------
> Subject: Editing Context Sporadically not Reverting?
> Date: Fri, 29 Jul 2011 11:20:34 +1200
> From: Andrew Lindesay <email@hidden>
> To: email@hidden
>
> Hi;
>
> We're seeing a wierd one which I have not previously had come up.
>
> I have an object X living in the default EC which is modified by
> "takeValuesFromRequest(..)".  In the "invokeAction(..)" the method
> "revert()" is invoked on the default EC.  However the modifications on X
> survive the revert.  This happens sporadically.  If I look at
> "updatedObjects()" on the ec just prior to the revert, when this problem
> arises it seems to think it has no modified objects.
>
> I'm fairly sure that I am sticking to the "editing context golden rules"
> and are not doing anything terribly wierd.
>
> Has anybody else seen this one?
>
> cheers
>
> --
> Andrew Lindesay
> www.silvereye.co.nz
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
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

  • Prev by Date: Re: ERAttachment... to-many and thumbs
  • Next by Date: Re: Cayenne
  • Previous by thread: Re: Cayenne
  • Next by thread: ERGroupware
  • Index(es):
    • Date
    • Thread