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 PageParameters parameters) {
add(new Link("link") {
public boolean isVisible() {
System.out.println("here i am");
return false;
}
}
}
}
PAGE.HTML
<html><body>
<a href="#" wicket:id="link">The Link</a>
</body></html>
RESULT
here i am
here i am
here i am
here i am
Any ideas why this method is being called 4 times?
Thanks.
--
Henrique Boregio
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]