You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by HITECH79 <hi...@web.de> on 2008/12/19 16:56:52 UTC

Closing Modal Window and redirect to anonther Page! Problem!

Hallo wicket-friends,


i have following problem.

- I save a model to database. On success a SaveFeedbackDialog (in modal
window) is showing. With a SubmitLink in the modal window you can close the
SaveFeedbackDialog(MODAL), but i cant redirect to the OverviewPage.class in
MainWindow. The Overviewpage is displayed in the SaveFeedbackDialog(MODAL).

{
saveFeedbackDialog.close(ajaxRequestTarget);
setResponsePage(OverviewPage.class);
}


Whats the problem or resolution??

Thanls



-- 
View this message in context: http://www.nabble.com/Closing-Modal-Window-and-redirect-to-anonther-Page%21-Problem%21-tp21093604p21093604.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Closing Modal Window and redirect to anonther Page! Problem!

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
You can use WindowClosedCallback...

      modalWindow.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {
        public void onClose(AjaxRequestTarget target) {
   ---> redirect
        }
      });


**
Martin

2008/12/19 HITECH79 <hi...@web.de>:
>
> Hallo wicket-friends,
>
>
> i have following problem.
>
> - I save a model to database. On success a SaveFeedbackDialog (in modal
> window) is showing. With a SubmitLink in the modal window you can close the
> SaveFeedbackDialog(MODAL), but i cant redirect to the OverviewPage.class in
> MainWindow. The Overviewpage is displayed in the SaveFeedbackDialog(MODAL).
>
> {
> saveFeedbackDialog.close(ajaxRequestTarget);
> setResponsePage(OverviewPage.class);
> }
>
>
> Whats the problem or resolution??
>
> Thanls
>
>
>
> --
> View this message in context: http://www.nabble.com/Closing-Modal-Window-and-redirect-to-anonther-Page%21-Problem%21-tp21093604p21093604.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org