Markup's isVisible method being called multiple times

2009-04-18 Thread Henrique Boregio
I am overriding the link's onVisible method to do some conditional markup. I've realized that this method is actually being call 4 times. When I add a simple System.out to the following code, I get the corresponding resut: MyPAGE.JAVA public class MyPage extends WebPage { public MyPage(final

Re: Markup's isVisible method being called multiple times

2009-04-18 Thread Marko Sibakov
Hi Henrique, Answer can be found from javadoc /** * Gets whether this component and any children are visible. * p * *WARNING: this method can be called multiple times during a request. If you override this* * method, it is a good idea to keep it cheap in terms of

Re: Markup's isVisible method being called multiple times

2009-04-18 Thread quiqueq
Oh. I feel stupid haha Thanks. tohtori wrote: Hi Henrique, Answer can be found from javadoc /** * Gets whether this component and any children are visible. * p * *WARNING: this method can be called multiple times during a request. If you override this* *