0 Replies Latest reply on Sep 13, 2008 4:20 AM by man4j

    How show error page if throws exception in action listener?

    man4j

      i have action listener:

      public void onAction(ActionEvent e) throws Exception
      {
      throw new Exception();
      }

      if i use a4j:commandButton and A4J.AJAX.onError - it's ok.

      but if i use h:commandButton and tomcat error handling:

      <error-page>
      <exception-type>java.lang.Exception</exception-type>
      /template/error.jsf
      </error-page>

      It's not work! My Exception catched and not go to tomcat handlers!

      Help!