11 Replies Latest reply on Jul 17, 2008 3:40 PM by Mikael Andersson

    AtCreate and exception handling

    Mikael Andersson Master


      Is it possible to use exception handling defined in pages.xml with exceptions occuring in an @Create annotated method?

      What I'm currently seeing is that the exception occurs in the render response phase and don't go to the catch all error page I've configured.

      I tested this by throwing a RuntimeException manually in the @Create method.

      From my pages.xml :

              <redirect view-id="/jsf/_error/error.xhtml">
                  <message>Severe Application error, please contact support</message>