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: Arturo PĂ©rez <email@hidden>
- Date: Sat, 14 Jan 2006 23:11:55 -0500
Along with the other hints, make sure that the arrays et al you're
using to drive the repetition don't change between the takevalues and
the appendtoresponse phase. For example, if you generate a new array,
even if all the entries are the same and in the same order, then WO's
logic for handling that synchronization between the hyperlinks and the
items will fail.
-arturo
On Jan 14, 2006, at 12:02 PM, Dev WO wrote:
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:
email@hidden
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