it could be that if you do that then in normal use
the serverside doesnt know that the modal window isnt shown anymore.
So i guess you should also try to let the server know.

On Fri, Dec 4, 2009 at 10:16, Bernard Lupin <[email protected]> wrote:

>
> 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: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
>
> --
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to