The problem is that when setResponsePage() is called, no appended
Javascript is evaluated. In fact, wicket doesn't process the ajax
response at all. Just sets window.location.

-Matej

On 5/9/07, dukejansen <[EMAIL PROTECTED]> wrote:
>
> Yeah, but I don't want to disable that warning. That warning is valid if the
> user really does try to navigate away while the modal is still being
> displayed.
>
> The problem is that I am actually closing the modal before I do the
> redirect, so it shouldn't show the warning at all.
>
> -Jason
>
>
> Matej Knopp-2 wrote:
> >
> > There is a way that should also work in recent 1.x. To disable the
> > confirmation dialog you need to put this inside the page with modal
> > window:
> > <script type="text/javascript">
> >   Wicket.Window.unloadConfirmation=false;
> > </script>
> >
> > -Matej
> >
> > On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote:
> >> dukejansen schreef:
> >> > My Ajax event handler needs to first close the current modal window and
> >> then refresh the entire page. Is there a better way to do this?
> >> >
> >> I once worked around something like this by putting the redirect in the
> >> windowClosedCallback of the ModalWindow. That was sufficient in our
> >> case, but I too would be interested in some more enlightenment in this
> >> area :).
> >>
> >>
> >> Arnout
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> _______________________________________________
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10400468
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to