Re: getPage() Question

2010-08-13 Thread Thierry Peng

I figured it out.

For who is interested:

The first getPage().addOrReplace replaced the middlepanel which was also 
the current changepasswordpanel.
The second call on getParent() can only yield null because the panel in 
question was already swapped.


So there are two valid solutions:

first use the var-arg:

getPage().addOrReplace( new MiddleInfoPanel(middle),new 
LoginPanel(right));


second, swap first the right panel, then the middle panel

getPage().addOrReplace(new LoginPanel(right));
getPage().addOrReplace(new MiddleInfoPanel(middle));



both solutions works and my faith in wicket is saved

silly me

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



Re: getPage question

2009-11-10 Thread Pamir Erdem
Again it's related with ajax calls. It coud solve this issue when
implementing ajax polls.

Thanks

On Wed, Nov 11, 2009 at 1:18 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 your attachment never made it through.

 -igor

 On Tue, Nov 10, 2009 at 3:12 PM, Pamir Erdem pamir.er...@gmail.com
 wrote:
  In the attachment you'll see that the regions that intersect with each
 other
  indicates that the slowest method execution on stack trace. If you look
 at
  Count Delta on getPage method you will see that it  equals to 37 which
 means
  thatgetPage is executed  37 times  in a request. There are too many ajax
  calls in the web page. Is there anything which we can do to tune that
 screen
  ?
 
 
  --
  Pamir Erdem
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 

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




-- 
Pamir Erdem


Re: getPage question

2009-11-10 Thread Igor Vaynberg
37 getpage() calls should be no big deal. even a 100.

-igor

On Tue, Nov 10, 2009 at 3:27 PM, Pamir Erdem pamir.er...@gmail.com wrote:
 Again it's related with ajax calls. It coud solve this issue when
 implementing ajax polls.

 Thanks

 On Wed, Nov 11, 2009 at 1:18 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 your attachment never made it through.

 -igor

 On Tue, Nov 10, 2009 at 3:12 PM, Pamir Erdem pamir.er...@gmail.com
 wrote:
  In the attachment you'll see that the regions that intersect with each
 other
  indicates that the slowest method execution on stack trace. If you look
 at
  Count Delta on getPage method you will see that it  equals to 37 which
 means
  thatgetPage is executed  37 times  in a request. There are too many ajax
  calls in the web page. Is there anything which we can do to tune that
 screen
  ?
 
 
  --
  Pamir Erdem
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 

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




 --
 Pamir Erdem


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



Re: getPage question

2009-11-10 Thread Igor Vaynberg
your attachment never made it through.

-igor

On Tue, Nov 10, 2009 at 3:12 PM, Pamir Erdem pamir.er...@gmail.com wrote:
 In the attachment you'll see that the regions that intersect with each other
 indicates that the slowest method execution on stack trace. If you look at
 Count Delta on getPage method you will see that it  equals to 37 which means
 thatgetPage is executed  37 times  in a request. There are too many ajax
 calls in the web page. Is there anything which we can do to tune that screen
 ?


 --
 Pamir Erdem


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


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