11 Replies Latest reply on Jul 17, 2008 3:40 PM by mail.micke

    AtCreate and exception handling

    mail.micke

      Hi


      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 :


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



      Cheers,
      micke