Re: Still hopeful for D2WList advice
Re: Still hopeful for D2WList advice
- Subject: Re: Still hopeful for D2WList advice
- From: Justin Tocci <email@hidden>
- Date: Wed, 25 Aug 2004 08:31:03 -0500
I agree; I've read those sections of the EO manual. I was referring to
that when I wrote that I was pretty sure I could handle this with hand
built components. It's just not obvious to me how I could use that code
with a displaygroup and D2WList component because there is no code for
them in the .java file.
Today I'm going to try to figure out if the rule system can tell the
D2WList component to use my saveChanges() method in the .java file to
save instead of its own. If I can do that I think I'm on my way again.
justin tocci
fort wayne, in
On Aug 25, 2004, at 8:11 AM, Robert Walker wrote:
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.