Hi again, After a lot of various tries, I finally found a solution that seems to work. On my ModalWindow close button, I don't need javacode anymore, I just have this small javascript command in the markup file:
onclick="window.parent.Wicket.Window.close();" Do you think that it's a good way to solve my problem ? Regards, Bernard Bernard Lupin wrote: > > Hi, > On my ModalWindow's close button, I only want to ... close the modal > window. It seems that myWindow.close(target) calls some Ajax request, > which is failing when session is expired. > But if I click on the cross button in the upper right of the modal window, > everything works well : the modal window is closed and the original window > becomes active again. > I searched in source page and in wicket source code, but can't find what > code is behind this cross button. > Could you tell me which javascript code I could invoke on my close button, > to close the window without ajax request ? > Thanks a lot > Bernard > > > > > > --------------------------------------------------------------------- > 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://old.nabble.com/close-a-ModalWindow-when-session-expired-tp26622679p26635817.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org