This seems to work fine: new AjaxLink("ajaxlink") {
public void onClick(AjaxRequestTarget target) { getRequestCycle().setRequestTarget(new RedirectRequestTarget("http://www.google.com")); } }); Wilhelmsen Tor Iver <toriv...@arrive.no> 2009-09-04 15:47 Sänd svar till users@wicket.apache.org Till "users@wicket.apache.org" <users@wicket.apache.org> Kopia Ärende SV: ajax - navigate to new location > target.prependJavascript("window.location.href=google.com"); > > Is there a better way of doing this? Doubtful; Ajax is primarily concerned with NOT replacing the whole page. If you always replace the page use a "normal" link instead which lets you set a RedirectRequestTarget for instance. - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org