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 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 
> ShoppingCartPanel.java, or is there an easier and more elegant way to do this?

.. you can visit each component on the current page and tell (interface)
it, that someone has changed something.. the component can now decide to
redraw itself.

Ignore the text, the code should tell the story:

http://books.google.de/books?id=9esdx8R-fJAC&lpg=PA104&ots=ajkIysVFup&dq=wicket%20AbstractAjaxEvent&pg=PA103#v=onepage&q=wicket%20AbstractAjaxEvent&f=false

mm:)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to