• 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: Direct Actions and Sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct Actions and Sessions


  • Subject: Re: Direct Actions and Sessions
  • From: Art Isbell <email@hidden>
  • Date: Thu, 27 Nov 2003 11:26:55 -1000

On 28/11/2003, at 1:59 AM, Colin Clark wrote:

public WOActionResults updateImageTitleAction() {
Integer imageNum = Integer.parseInt(context().request().stringFormValueForKey("uniqueImage Number"));
String newTitleForImage = context().request().formValueForKey("title");
EOEditingContext ec = new EOEditingContext();

ec.lock();

Image = (Image) EOUtilities.objectMatchingKeyAndValue(ec, "Image", "imageNumber", imageNum);
image.setTitle = newTitleForImage;


ec.saveChanges();

ec.unlock();

}

I've become paranoid about locking all editing contexts but the session's default editing context. Please correct me if I'm wrong to suggest the above in this situation.


Aloha,
Art
_______________________________________________
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.

  • Follow-Ups:
    • Re: Direct Actions and Sessions
      • From: Chuck Hill <email@hidden>
References: 
 >Re: Direct Actions and Sessions (From: Colin Clark <email@hidden>)
 >Re: Direct Actions and Sessions (From: Greg Hulands <email@hidden>)

  • Prev by Date: Re: Direct Actions and Sessions
  • Next by Date: Re: Direct Actions and Sessions
  • Previous by thread: Re: Direct Actions and Sessions
  • Next by thread: Re: Direct Actions and Sessions
  • Index(es):
    • Date
    • Thread