How can I be sure that there is only 1 instance of somepanel? If the user
clicks 10 times the link, 10 different panels would be created in memory.
igor.vaynberg wrote:
>
> you should only create the panels when the user clicks on the link
>
> add(new link(..) {
> onclick() {
> panel=new somepanel(...);
> ((mypage)getpage()).setcontentpanel(panel);
> }
> }
>
> -igor
>
--
View this message in context:
http://www.nabble.com/Refreshing-page---onBeforeRender%28%29-issue-tp23016450p23017567.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]