Maybe a solution was already posted, I didn't find an answer !

I want to close a modal window just by mouse click outside the modal window

I tried some javascript code:

var win = window.Wicket.Window;
if (typeof(win.current) != "undefined") {

Problem is:
1.) The modal window just opens one time. -> I can 't open the modal window
anymore with:
btnModalDlg = new AjaxButton("btnModalDlg") {
        public void onSubmit(AjaxRequestTarget target, Form<?> form) {

2.)And the modal window also closes when cklicking on it.
But I need the close behaviour just when clicking outside the dialog.

Is there any solution ?

Thanks for any help!

View this message in context:
Sent from the Wicket - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to