since you use a page for the modal you need to call "window.location" for
the parent window:
parent.location= ...the url here ...
or
top.location = ... the url here ...

On Sat, Apr 9, 2011 at 3:07 PM, hrbaer <herber.m...@gmail.com> wrote:

> I tried to add a AjaxLink but I didn't get it so far.
> This is my code:
>
> public class ModalPage extends WebPage{
>
>    public ModalPage( final ModalWindow modalwindow ){
>
>        add( new AjaxLink( "link" ) {
>
>            public void onClick( final AjaxRequestTarget target ) {
>
>                modalwindow.close( target );
>                 target.appendJavascript("window.location='" + urlFor(
> Home.class, new PageParameters() ) + "'");
>
>            }
>
>        });
>
>    }
>
> }
>
> The current effect: The modal windows get's closed but no redirect took
> place.
> Any idea?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3438418.html
> Sent from the Users forum 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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to