2 Replies Latest reply on Dec 2, 2007 9:28 AM by Pete Muir

    problem with exception handling

    John McClain Newbie

      I put the following in pages.xml to test exception handling:

       <redirect view-id="/genericErrorPage.xhtml">

      Here is genericErrorPage.xhtml
       id="globalMessages" />

      Here is where the exception is thrown in the backing bean:
       public List<Tblcase> getCaseList() throws Exception {
       if (true)
       throw new Exception("test");

      facesMessages was @In injected into this statefull session bean
      The genericErroPage.xhtml does not come up, instead I get this
      SEVERE: Error Rendering View[/caselist.xhtml]
      java.lang.RuntimeException: exception invoking: getCaseList
       at or

      Why no erro page?