6 Replies Latest reply: Jun 14, 2012 1:26 PM by Jason Porter RSS

    Seam 3 exception handler - redirection doesn't work

    Jakub Cechacek Newbie

      Hi, I'm not entirely sure if this is the right place to ask (so I'm sorry if it isn't), but..

      What can be cause of not working redirection in this case?

      public class ExceptionHandler {
      public void handleException(@Handles CaughtException<Throwable> e,
      Messages messages     
      FacesContext facesContext){

      .error("something went wrong");
      .handleNavigation(facesContext, null, "errorpage");

      Handler method is processed, but how can I redirect to some error page in exception handler method?  I'm working on school project and according to everything what was presented in course (and what I was able to figure out from documentation) this should work.