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

Reply via email to