• 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: Andrew Lindesay <email@hidden>
  • Date: Mon, 01 Aug 2011 07:36:49 +1200

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


  • Follow-Ups:
    • Re: Editing Context Sporadically not Reverting?
      • From: Jon Nolan <email@hidden>
References: 
 >Editing Context Sporadically not Reverting? (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  • Next by Date: Re: Editing Context Sporadically not Reverting?
  • Previous by thread: Editing Context Sporadically not Reverting?
  • Next by thread: Re: Editing Context Sporadically not Reverting?
  • Index(es):
    • Date
    • Thread