• 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: Still hopeful for D2WList advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still hopeful for D2WList advice


  • Subject: Re: Still hopeful for D2WList advice
  • From: Robert Walker <email@hidden>
  • Date: Wed, 25 Aug 2004 09:11:40 -0400

Justin,

I would imagine that "Recovery" is a better solution than "Prevention" in your case. I would implement one of the solutions found in "Enterprise Objects" under section "Update Strategies." There are code samples to handle optimistic locking exceptions. Maybe the "Recovery and Last Write Wins" method would work for your case.

I hope this helps. Please feel free to contact me if you need further assistance.

On Aug 25, 2004, at 1:21 AM, Justin Tocci wrote:

I've got a D2WList reusable component working with a fetchspec. Here's my problem in a nutshell:

Enter WebObjects D2WList page.
Select an item in the list for edit.
edit the item. All is well.
change the item directly in the database to simulate another user making an update to the same item with Microsoft Access.
go to edit the item again and i get an error saying record has changed (user can not edit the record despite numerous re-tries).


I thought by using a fetchspec I could fetch on load, but that checkbox and the "refreshes refetched" checkboxes aren't helping. I also thought I could put the fetchspec in the appendToResponse method, but D2W reusable components don't put the code for the fetchspec in the .java file where I could do that, nor is there a saveChanges() method anywhere that I can fiddle with.

Sorry for the lack of Java proficiency. I'm pretty sure I could fix these issues with hand built components, its just that D2W was the only reason I ever wanted to learn WebObjects, so I'm trying to go that way. Problem is, locking someone out of editing a record is unacceptable in my environment. Thanks all.

justin tocci
fort wayne, in

I still haven't got the Wonder Direct to Web frameworks working, does anyone know if Wonder addresses this issue?
_______________________________________________
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.



--
Sincerely,
Robert Walker
Programmer
Bennett Technology Group
_______________________________________________
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: Still hopeful for D2WList advice
      • From: Justin Tocci <email@hidden>
References: 
 >Still hopeful for D2WList advice (From: Justin Tocci <email@hidden>)

  • Prev by Date: Re: WOForm queryDictionary binding
  • Next by Date: Re: Still hopeful for D2WList advice
  • Previous by thread: Still hopeful for D2WList advice
  • Next by thread: Re: Still hopeful for D2WList advice
  • Index(es):
    • Date
    • Thread