I am trying to use the ModalWindow as a confirmation dialog and it works fine
on one page but the same code on a different page produces the above error.
Closing the ModalWindow with the X in the corner work fine. The error
occurs when the AjaxCallbackLink onClick handler calls ModalWindow.close();
On the page that isn't working the following code is called as the last
thing in the page constructor.
// The delete dialog
ModalWindow deleteDialog = new ModalWindow("deleteDialog");
mConfirmationPanel = new
ConfirmationPanel(deleteDialog.getContentId(), new
WUIResourceModel(CampaignManagerPage.class, "deleteDialogQuestion"), this,
deleteDialog);
deleteDialog.setContent(mConfirmationPanel);
deleteDialog.setInitialWidth(260);
deleteDialog.setInitialHeight(80);
deleteDialog.setResizable(false);
deleteDialog.setTitle("Delete Campaign(s) Confirmation");
deleteDialog.setWindowClosedCallback(
new ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = 1L;
public void onClose(AjaxRequestTarget pRequestTarget) {
...
}
}
}
}
);
add(deleteDialog);
Any ideas?
--
View this message in context:
http://www.nabble.com/ModalWindow.close%28%29-results-in-ERROR%3A-Exception-evaluating-javascript%3A-TypeError%3A-window.parent.setTimeout-is-not-a-function-tf4573096.html#a13053366
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]