• 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
Intermittent Session Default Editing Context behaviour?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intermittent Session Default Editing Context behaviour?


  • Subject: Intermittent Session Default Editing Context behaviour?
  • From: "Peter Thompson" <email@hidden>
  • Date: Thu, 10 Jan 2008 14:07:51 +1300
  • Importance: high
  • Priority: Urgent
  • Thread-topic: Intermittent Session Default Editing Context behaviour?

Hello,
 
We have an intermittent behaviour as follows:
We have an object (build via EOModeler) fetched into the session's default editing context; which we are able to update successfully via WO component bindings / java code via session().defaultEditingContext().saveChanges().  We then do a session().defaultEditingContext().refreshAllObjects(), but a subsequent change to the object (via a "setter" in java code) is only sometimes updated by a subsequent session().defaultEditingContext().saveChanges().  This behaviour appears totally random - on debugging we notice that sometimes the EditingContext's "updatedObjects()" reflects the update done by the setter, and sometimes it does not.
Is this a known problem?
 
Are we making assumptions that we shouldn't be i.e. is it correct to assume that if we do...
1. fetch object into session's default editing context.
2. do updates on object via components / java code.
3. save object via:
session().defaultEditingContext().saveChanges();
session().defaultEditingContext().refreshAllObjects();
4. do further updates on object via java code.
5. save object again via:
session().defaultEditingContext().saveChanges();
session().defaultEditingContext().refreshAllObjects();
That step 5 should save the changes?
 
Appreciate any assistance you can give.
 
Cheers,
Peter
 

Peter Thompson

Senior Developer/Architect

Run The Red

www.runthered.com

===================================

E:  email@hidden

M:  + 64 21 241 3266  /  + 64 27 441 3255

DDI:  + 64 4 801 2806

P: +64 4 384 6880  F: +64 4 384 6875

Skype: peterwgtnnz

PO Box 11-703,

Level 2 Tadix House, 1 Blair Street,

Te Aro, Wellington 6011, New Zealand

===================================

 
 _______________________________________________
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: Intermittent Session Default Editing Context behaviour?
      • From: Miguel Arroz <email@hidden>
  • Prev by Date: Re: [ANN] building JavaClient without nib but using swing gui with eclipse+wolips
  • Next by Date: Re: Intermittent Session Default Editing Context behaviour?
  • Previous by thread: Re: Can't retrieve cookies
  • Next by thread: Re: Intermittent Session Default Editing Context behaviour?
  • Index(es):
    • Date
    • Thread