On Wed, 20 Jun 2007, Seldon, Richard wrote:
> Thanks for response igor.  In answer to your question,  yes we've overridden
> isVisible to be of form :-
>  
> public boolean isVisible() {
> 
>         return getXXX() != null;
> 
> }

isVisible() can be called several times during the request 
cycle. One optimization (?) that you could try would be to 
leave isVisible without overriding and do

@Override
public void onBeforeRender() {
    setVisible(getXXX() != null);
    super.onBeforeRender();
}

instead.

It's hard to say if this would affect your case, it would be 
interesting to understand better why your issue only occurs 
in load testing. Could it be an issue of state being 
shared incorrectly between concurrent requests? Do your 
load test users have separate HTTP sessions?

- Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to