RedirectToUrlException works fine from within an AJAX response handler in Wicket.
>-----Original Message----- >From: Chris Colman [mailto:[email protected]] >Sent: Wednesday, 28 March 2012 6:09 AM >To: [email protected] >Subject: Redirect to external URL from AjaxLink > >Is it possible to redirect to an external URL when the AjaxLink onClick >is called? > >I frequently use setReponsePage to redirect to a mounted page from >within an onClick but this redirects based on page class/parameters.. I >can't see a setResponseUrl (or similar method). > >Can we use a > >throw new RedirectToUrlException > >within AJAX like we do in constructors of pages when a 'normal' http >page request is being processed? > > >Yours sincerely, > >Chris Colman --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
