[ https://issues.apache.org/jira/browse/WICKET-3144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-3144. ------------------------------------- Resolution: Fixed Improved with r1032118 in trunk and 1032124 in 1.4.x. To do what you need: {code} new ModalWindow("modal") { /** * @see org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#newCloseButtonBehavior() */ @Override protected CloseButtonBehavior newCloseButtonBehavior() { return new CloseButtonBehavior() { /** * @see org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.CloseButtonBehavior#getAjaxCallDecorator() */ @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { @Override public CharSequence preDecorateScript(CharSequence script) { return "console.log('Test'); " + script; } }; } }; } } {code} > Extra client-side scripting before closing modalwindow > ------------------------------------------------------ > > Key: WICKET-3144 > URL: https://issues.apache.org/jira/browse/WICKET-3144 > Project: Wicket > Issue Type: New Feature > Components: wicket-extensions > Affects Versions: 1.4.12, 1.5-M2.1 > Reporter: Marieke Vandamme > Assignee: Martin Grigorov > > I would like to add extra client-side scripting that is executed before the > modalwindow is closed. > Now you can already add server-side with overriding onCloseButtonClicked, but > then the window is already closing. > I need this because I want to show a confirm-box to the user, so that he can > confirm that he wants to close the window. > Thanks, Marieke Vandamme -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.