even better is to add this call to the request that opens the window:
onClick( AjaxRequestTarget target )
{
target.appendJavascript( "Wicket.Window.unloadConfirmation =
false;" );
...
modal.show( target);
}
This way the logic is still contained in java and it works for a panel
or a pa
ld it be a good idea 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 on
al...@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
jQuery(document).ready(function(){
if (typeof Wicke
Try adding this one to the page markup
jQuery(document).ready(function(){
if (typeof Wicket != 'undefined' &&
Wicket.Window)
Wicket.Window.unloadConfirmation =
false;
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 t
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 WindowC
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 which
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 addi