5 Replies Latest reply on Mar 8, 2011 4:31 PM by marx3

    Seam Catch - redirect after error

    marx3

      I have working Seam Catch setup - it catches exceptions, print them on error log, and I would like to have it to redirect to error page. Hovewer redirect doesn't work for me. I've tried two ways of doing redirect:


      nav.handleNavigation(FacesContext.getCurrentInstance(), null, "/error.xhtml")



      and


      fc.getViewRoot().setViewId("/error.xhtml");



      None of them works for me.
      I suspect that non working redirect depends on moment/place where error is raised, so I maybe somebody can clarify it?