Hi,
I would like to know whether it is possible to use redirect when session timeout using @Destroy method.
@Destroy public void redirect() { Redirect.instance().setViewId("/home.seam"); Redirect.instance().execute(); }
Result: Nothing happens on client but on server (with debug) I could see this method executes properly.
@Drestroy is a callback method, so no. You can't redirect a browser outside a request. Christian wrote an interesting blog post on how to simulate this though
http://in.relation.to/Bloggers/Christian