Hi, panel.getPage() gives you the current page which you can reload i.e. with setResponsePage()
Cheers Hans -----Ursprüngliche Nachricht----- Von: vaibhav2012 [mailto:[email protected]] Gesendet: Mittwoch, 20. Juni 2012 07:54 An: [email protected] Betreff: How to reload a Wicket-page from Wicket-panel. Hi, I want to reload Wicket-page from a Wicket-panel. The scenario is like : 1) I have a SignInPanel. I am adding this panel in different pages, lets for example say PageA, PageB, PageC etc. 2) Now when user is in PageA, and user signs in from SignInPanel. I want the contents of PageA to change as per user's data. For this i need to reload PageA. 3) Step (2) is applicable for PageB, PageC and all other pages which holds this SignInPanel. But i am not able to access the Page instance from within the SignInPanel. One approach i have thought of, is to pass the Page class to the constructor of SignInPanel while initializing it. And i can use this Page class to reload the particular page. Can anyone suggest me of a cleaner approach to acheive this. Thanks, ----- Regards, Vaibhav Gupta -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from- Wicket-panel-tp4650097.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
