Event handling and swapping panels

2012-03-28 Thread Jeffrey Schneller
I want to swap panels using the event model in 1.5. This is very similar to the panel swapping code (wicket 1.4.x) found in the Apache Wicket Cookbook but uses the event model instead. The problem is I can't set the panel equal to its replacement, like you would in 1.4.x. This is found on

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
OuterPanelClass.this.panel.replaceWith(replacement); OuterPanelClass.this.panel=replacement; -igor On Wed, Mar 28, 2012 at 11:33 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I want to swap panels using the event model in 1.5.  This is very similar to the panel swapping code

RE: Event handling and swapping panels

2012-03-28 Thread Jeffrey Schneller
: MyPage.this.workingPanel.replaceWith(replacement); MyPage.this.workingPanel = replacement; -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 28, 2012 3:07 PM To: users@wicket.apache.org Subject: Re: Event handling and swapping panels

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
[mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 28, 2012 3:07 PM To: users@wicket.apache.org Subject: Re: Event handling and swapping panels OuterPanelClass.this.panel.replaceWith(replacement); OuterPanelClass.this.panel=replacement; -igor On Wed, Mar 28, 2012 at 11:33 AM, Jeffrey Schneller

RE: Event handling and swapping panels

2012-03-28 Thread Jeffrey Schneller
Subject: Re: Event handling and swapping panels paste your entire panel/page class... -igor On Wed, Mar 28, 2012 at 12:15 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Thanks.  But what does OuterPanelClass refer to in my example? I don't think either of these are right

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
Subject: Re: Event handling and swapping panels paste your entire panel/page class... -igor On Wed, Mar 28, 2012 at 12:15 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Thanks.  But what does OuterPanelClass refer to in my example? I don't think either of these are right

RE: Event handling and swapping panels

2012-03-28 Thread Jeffrey Schneller
, March 28, 2012 3:49 PM To: users@wicket.apache.org Subject: Re: Event handling and swapping panels that is correct -igor On Wed, Mar 28, 2012 at 12:41 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Here it is: public class Admin extends WebPage {        private Component

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
] Sent: Wednesday, March 28, 2012 3:49 PM To: users@wicket.apache.org Subject: Re: Event handling and swapping panels that is correct -igor On Wed, Mar 28, 2012 at 12:41 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Here it is: public class Admin extends WebPage

Re: Event handling and swapping panels

2012-03-28 Thread Francois Meillet
to be easier. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 28, 2012 3:49 PM To: users@wicket.apache.org Subject: Re: Event handling and swapping panels that is correct -igor On Wed, Mar 28, 2012 at 12:41 PM, Jeffrey Schneller

RE: Event handling and swapping panels

2012-03-28 Thread Jeffrey Schneller
Thank you Igor and Francois!! This solved my problem and it is working perfectly now. -Original Message- From: Francois Meillet [mailto:qq...@gmail.com] Sent: Wednesday, March 28, 2012 4:45 PM To: users@wicket.apache.org Subject: Re: Event handling and swapping panels Unless