One way, for example. is to pass in a component, or even a list of
components, to the ShoppingCartPanel's constructor and your onClick could
then do the necessary. Since your ShoppingCartPanel knows it going to use
AJAX, its constructor may also choose to setOutputMarkupId(true) on the
passed in components.

BTW, is "Beer" a special kind of Norwegian cheese then?

Regards - Cemal
OO & Java Technologies, Wicket Training and Development

Magnus Haraldsen Amundsen wrote:
> Hi,
> I'm following the Cheesr examples in the "Wicket in Action" book and have
> met a problem when ajaxifying it.
> I have that displays a shopping cart from a custom shopping
> cart panel ( This custom panel has a remove link
> for each item, and clicking this removes the item from the list using
> Ajax. In I also have a Checkout button that is set to visible
> when there's items in the shopping cart. I need to refresh this component
> also using Ajax when I press the remove link in the shopping cart panel,
> so that it is hidden when the cart is empty. How do I update this
> component from my custom shopping cart panel? Do I have to make the
> Checkout button a public variable and refresh it using 
> target.addComponent(Index.checkout) in, or is there
> an easier and more elegant way to do this?
> -
> -
> Regards,
> Magnus

View this message in context:
Sent from the Wicket - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to