Whenever getPage() returns null it's most likely that the component isn't added to a page yet. Just a guess: you're calling getPage() in the constructor of your panel right? Try calling it in the onBeforeRender method and page won't return null
hope that helps Michael Arun Wagle wrote: > > Hi, > > I had tried getPage() but it returns null to me. > Is it because the panel in which I am trying to access the other panel > component is a modal dialog? > > Any suggestions. > > > > igor.vaynberg wrote: >> >> component#getPage() >> >> -igor >> >> On Tue, Nov 4, 2008 at 9:28 PM, Arun Wagle <[EMAIL PROTECTED]> >> wrote: >>> Hello , >>> >>> I have an application which renders a page. >>> This page has two panels , panel A and panel B >>> Each panel has some components in it. >>> >>> Now I want to access some component in panel B from panel A. >>> >>> Can someone tell me how do I get a handle to panel B in panel A ? >>> >>> If I have an instance of the page, then I can do a *get("id of panel >>> B")* to >>> get the instance of panel B >>> But how do I get the instance of the home page in panel A ? >>> >>> How can I acheive this scenarion in the best possible way? >>> >>> Can someone please help me as I have lot of cases with these scenarious >>> ? >>> >>> >>> >>> >>> Regards, >>> Arun Wagle >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > ----- Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Design-question-%3A-accessing-components-between-panels-tp20336382p20343221.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]