Refreshing page / onBeforeRender() issue

2009-04-12 Thread Henrique Boregio
I have a web page with a simple design where a NavigationPanel contains a few links which replace the main panel with other panels. My problem is that when I initialize this web page, it creates all of the panels which will eventually replace a main panel (according to the link in the

Re: Refreshing page / onBeforeRender() issue

2009-04-12 Thread nick
Thank you for your mail. I am presently on vacation and will return April 14th. If you need urgent assistance, please email supp...@bookingbooster.com. You can also reach our Support via Skype callto://premiersupport Thank you Best regards, Nick Wheeler Booking Booster.com t: +44 (0)1273

Re: Refreshing page / onBeforeRender() issue

2009-04-12 Thread Igor Vaynberg
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 On Sun, Apr 12, 2009 at 5:56 PM, Henrique Boregio hbore...@gmail.com wrote: I have a web page with a simple

Re: Refreshing page / onBeforeRender() issue

2009-04-12 Thread quiqueq
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

Re: Refreshing page / onBeforeRender() issue

2009-04-12 Thread Igor Vaynberg
not exactly everytime you click you would do: {contentpanel.replace(newpanel); contentpanel=newpanel; } the last line: contentpanel=newpanel; frees up the reference to the old panel which will be garbage collected -igor On Sun, Apr 12, 2009 at 8:55 PM, quiqueq hbore...@gmail.com wrote: How