Re: How to redirect from a ModalWindow

2009-09-12 Thread Vladimir K
...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/How-to-redirect-from-a-ModalWindow-tp25381117p25411990.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: How to redirect from a ModalWindow

2009-09-12 Thread Mikko Pukki
] Sent: 12. syyskuuta 2009 9:37 To: users@wicket.apache.org Subject: Re: How to redirect from a ModalWindow Try adding this one to the page markup script language=javascript type=text/javascript jQuery(document).ready(function

Re: How to redirect from a ModalWindow

2009-09-12 Thread Peter Ertl
to have multiple modal windows in the first place? - Mikko -Original Message- From: Vladimir K [mailto:koval...@gmail.com] Sent: 12. syyskuuta 2009 9:37 To: users@wicket.apache.org Subject: Re: How to redirect from a ModalWindow Try adding this one to the page markup

Re: How to redirect from a ModalWindow

2009-09-12 Thread Ryan McKinley
- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/How-to-redirect-from-a-ModalWindow-tp25381117p25411990.html Sent from the Wicket - User mailing list archive

Re: How to redirect from a ModalWindow

2009-09-11 Thread Michal Kurtak
Hi Matthias, Try to navigate to another page from WindowClosedCallback window.close(target); window.setWindowClosedCallback(new WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { setResponsePage(OtherPage.class); } } But remember to remove

Re: How to redirect from a ModalWindow

2009-09-11 Thread Peter Ertl
That is sick! :-( Isn't there a better solution? Am 11.09.2009 um 08:42 schrieb Michal Kurtak: Hi Matthias, Try to navigate to another page from WindowClosedCallback window.close(target); window.setWindowClosedCallback(new WindowClosedCallback() { public void onClose(AjaxRequestTarget

How to redirect from a ModalWindow

2009-09-10 Thread Matthias Keller
Hi I've got a ModalWindow which lets the user select some choices. Now I need a button in that ModalWindow allowing the user to enter some new choices. I don't want that target to be another ModalWindow (as it's referenced from other places too), so I need to redirect the user to that new page

Re: How to redirect from a ModalWindow

2009-09-10 Thread Peter Ertl
throw new RestartResponseException(OtherPage.class) window.close() is not needed! Am 10.09.2009 um 12:50 schrieb Matthias Keller: OtherPage.class - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: How to redirect from a ModalWindow

2009-09-10 Thread Matthias Keller
Hi Peter You would be right as long as it wasn't for a ModalWindow. When having an open ModalWindow, wicket seems to register an unload javascript event which - when trying to navigate away from the page (be it by following a link, closing the window etc), displays a confirmation message