AW: How to reload a Wicket-page from Wicket-panel.
Hi, panel.getPage() gives you the current page which you can reload i.e. with setResponsePage() Cheers Hans -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 07:54 An: users@wicket.apache.org 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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: How to reload a Wicket-page from Wicket-panel.
Hi Hans, I have already tried this, but it doesn't work. SignInPanel is a seperate class which extends *org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate markup. I am adding this SignInPanel as a Component in different wicket pages, as mentioned in the scenario in my original question. SignInPanel has a form, and from onSubmit() of that form, i want to reload the page which holds this SignInPanel. I used this.getPage() in SignInPanel's constructor, but it gives this exception *org.apache.wicket.WicketRuntimeException: No Page found for component [SignInPanel [Component id = signInPanel]]* Can u suggest some other way? 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-tp4650097p4650099.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to reload a Wicket-page from Wicket-panel.
Please post your code -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 08:20 An: users@wicket.apache.org Betreff: Re: AW: How to reload a Wicket-page from Wicket-panel. Hi Hans, I have already tried this, but it doesn't work. SignInPanel is a seperate class which extends *org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate markup. I am adding this SignInPanel as a Component in different wicket pages, as mentioned in the scenario in my original question. SignInPanel has a form, and from onSubmit() of that form, i want to reload the page which holds this SignInPanel. I used this.getPage() in SignInPanel's constructor, but it gives this exception *org.apache.wicket.WicketRuntimeException: No Page found for component [SignInPanel [Component id = signInPanel]]* Can u suggest some other way? 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-tp4650097p4650099.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to reload a Wicket-page from Wicket-panel.
I used this.getPage() in SignInPanel's constructor In the constructor, the page is not yet set (See onInitialize and onConfigure) -Ursprüngliche Nachricht- Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] Gesendet: Mittwoch, 20. Juni 2012 08:20 An: users@wicket.apache.org Betreff: Re: AW: How to reload a Wicket-page from Wicket-panel. Hi Hans, I have already tried this, but it doesn't work. SignInPanel is a seperate class which extends *org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate markup. I am adding this SignInPanel as a Component in different wicket pages, as mentioned in the scenario in my original question. SignInPanel has a form, and from onSubmit() of that form, i want to reload the page which holds this SignInPanel. I used this.getPage() in SignInPanel's constructor, but it gives this exception *org.apache.wicket.WicketRuntimeException: No Page found for component [SignInPanel [Component id = signInPanel]]* Can u suggest some other way? 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-tp4650097p4650099.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to reload a Wicket-page from Wicket-panel.
Hi Hans, Thanks for the information. Its working :). - Regards, Vaibhav Gupta -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097p4650103.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org