Re: Unexpected behavior when an action is within a WORepetition
Re: Unexpected behavior when an action is within a WORepetition
- Subject: Re: Unexpected behavior when an action is within a WORepetition
- From: Dev WO <email@hidden>
- Date: Mon, 16 Jan 2006 18:07:18 +0100
Hi, thanks to Jerry, Guido, Ken and Arturo who have given me some tip.
I was about to email you saying I'm still having the issue, but
thanks to your tips, I was able to get to the method which generate
the issue.
And the reason was very simple, I was just manipulating the same
object replacing it's content by the newly choosen product.
So making sure I had a new object to handle the new product and
everything is working:)
Thanks a lot.
Xavier
Hi guys,
I don't think I'll get many answers on a week end, but just in case;)
I've got an hyperlink (action) inside a WORepetition.
The repetition list all items in a specific category.
The hyperlink simply add this item to the cart.
to make sure I gave enough details, the action that "addToCart" is
inside my Session.java file and it's get called from the hyperlink
above (passing the "item" as the parameter) and also from another
hyperlink when the user have the full description for a specific
item (and only this one).
So here's my problem:
-if I click on a second hyperlink on the same page (choosing a
second product from the same list), only the second item is
"remembered" but the quantity is actually set to 2.
So it's already causing me problem:( but it gets more wired because
if I keep on clicking on other items on this same page, the
quantity doesn't change and stay at 2, but the item in cart is
replaced by the latest item clicked...
I don't know what kind of details to provide, it's not a crash,
nothing is broken, it just don't work the way I though it would.
If anyone could give me a pointer on where to look at or what to
try, I'll be very happy:)
When the same action is called from a "full description" page,
everything behaves normally.
Thanks a lot and have a nice week end.
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com
This email sent to email@hidden
_______________________________________________
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