I have a simmilar situation where I want to put a panel nested in a panel nested in a page. The panel that is nested in the page stays the same for many different pages, but the panel nested into the panel changes. Would you do an anonymous panel class within an anonymous panel class within the page so that you can do the same type of referencing MyPage.this? Or is there a better way of doing this?
Actually I also find that using getPage() on beforeRender() to get the page is ok as long as do deal with any problems in case you cannot get the page.

Pieter

On Fri, Feb 13, 2009 at 6:34 PM, Igor Vaynberg <[email protected]>wrote:

make the panel an anonymous or inner class of the page and use MyPage.this.

-igor

On Fri, Feb 13, 2009 at 6:14 AM, pieter claassen <[email protected]>
wrote:
Is there a simple answer for how to get a reference from a panel to the
holding page that is available at compile time (something other than
getPage() on beforeRender())?

Thanks,
Pieter

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to