Yes - and in fact - to clarify - when I run my application, it 
displays the mini cart all the time (always on) - so when I add 
items, it updates, when they're removed, it's updated.  Unfortunately 
when I delete an item and add a new one, it displays the old one, 
even though in my cart itself is showing the new item.  I'm only 
making changes to the Cart object itself which has a property 
cartItems (ArrayCollection).  Debugging, this is always right with 
what the cart should be - it's just not showing the right products.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>
> And both are bound to the same ArrayCollection?
> 
> On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel <[EMAIL PROTECTED]> wrote:
> 
> >   I'm building shopping cart functionality which uses a 
ShoppingCart
> > component with 2 states. A "mini" cart and a regular view. The
> > regular view works fine with a DataGrid component and shows 
correct
> > cart items and price etc.
> >
> > The mini cart on the other hand doesn't work properly once you 
add an
> > item to the cart.
> >
> > If I add an item to the cart it displays properly. When I delete a
> > cart item, it displays properly. When I add another cart item 
after
> > deleting one, the item I last deleted shows up rather than the new
> > item I'm trying to add. I change view to "regular" (with DataGrid)
> > and it displays properly.
> >
> > If I add 5 items to my cart, the mini view will show the first 5
> > items I put in my cart. If I only had 3 items originally, then
> > deleted all three and put 5 new ones, the first three display as 
the
> > original 3 (in the order they were deleted), the final 2 are the
> > final 2 items I added with the set of 5.
> >
> > Hopefully I've explained my situation in a way that is helpful. As
> > for me, I'm at a loss - completely. I'm tracing through my cart
> > items and it displays what "should" be showing up.
> >
> > I'm using a List component with a custom itemRenderer.
> >
> > -Nathan D.
> >
> >  
> >
>


Reply via email to