Re: swap panels from child element

2015-02-02 Thread Sven Meier
Hi, replacing is really easy: this.addOrReplace(panel); ... as long as all your panels have an identical Wicket id. I often prefer this approach over changing visibility because of smaller session size (i.e. not keeping unused panels in the component tree) and simpler markup (i.e. not

Re: swap panels from child element

2015-02-02 Thread Grün Christoph
Andrea - thanks, but how can I access the panels from a child panel within the component hierarchy of a page without having to put them in the constructor of each child panel? best regards, Chris Am 02.02.2015 um 19:02 schrieb Andrea Del Bene an.delb...@gmail.com: Changing visibility is

Re: swap panels from child element

2015-02-02 Thread Martin Grigorov
Hi, You can use Wicket Events - http://www.wicket-library.com/wicket-examples-6.0.x/events/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Feb 2, 2015 at 8:25 PM, Grün Christoph christ...@ec.tuwien.ac.at wrote: Andrea - thanks, but how can I access the

Re: swap panels from child element

2015-02-02 Thread Andrea Del Bene
Changing visibility is less complex and if the result looks good I would go for it. Hi, I would like to swap panels B and C when the user clicks on a certain div element in Subpanel Aa The Page consists of following panels: - Panel A Subpanel Aa - Panel B - Panel C How can I access the

swap panels from child element

2015-02-02 Thread Chris
Hi, I would like to swap panels B and C when the user clicks on a certain div element in Subpanel Aa The Page consists of following panels: - Panel A Subpanel Aa - Panel B - Panel C How can I access the panels B and C and replace them or change their visibility from the WebMarkupContainer