How about RedirectPage, using the waitBeforeRedirectInSeconds argument? Eelco
On 1/25/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > This won't work. Because you can call setResponsePage only during > processing a request. When your code calls setResponsePage() there is no > request, so it doesn't make sense to set response page. > > I think what you want is AbstractAjaxTimerBehavior. > > -Matej > > tbt wrote: > > Hi! > > > > I'd like to know how to redirect a page automatically using wicket after a > > given time interval. Currently i'm using the following java class to do this > > > > Timer timer = new Timer(); > > timer.schedule(new TimerTask() > > { > > public void run() > > { > > setResponsePage(new > > LogOutConfirmationPage()); > > } > > } > > , 1 * 60 * 1000); > > > > This is supposed to redirect the page after 1 minute but Wicket is throwing > > the following runtime exception "There is no application attatched to the > > current thread" > > > > > > Is there any way to do this using the wicket framework? > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user