Re: Ajax: Updating component outside Panel

2009-10-09 Thread Michael Mosmann
Hi, I have Index.java that displays a shopping cart from a custom shopping cart panel (ShoppingCartPanel.java). This custom panel has a remove link for each item, and clicking this removes the item from the list using Ajax. In Index.java I also have a Checkout button that is set to visible

Ajax: Updating component outside Panel

2009-10-06 Thread Magnus Haraldsen Amundsen
Hi, I'm following the Cheesr examples in the Wicket in Action book and have met a problem when ajaxifying it. I have Index.java that displays a shopping cart from a custom shopping cart panel (ShoppingCartPanel.java). This custom panel has a remove link for each item, and clicking this

Re: Ajax: Updating component outside Panel

2009-10-06 Thread jWeekend
Magnus, 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

RE: Ajax: Updating component outside Panel

2009-10-06 Thread Magnus Haraldsen Amundsen
: Re: Ajax: Updating component outside Panel Magnus, 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