1 Reply Latest reply on Feb 3, 2008 5:25 PM by pmuir

    Redirect on Session Timeout using Destroy method

      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.


      My idea is I don't want to use any extra boiler plate code (filter, phaselistener etc.,) to redirect, instead use Seam's power.

      Please help me.

      Thanks