JSF 1.2 Error handling with IceFaces 1.8

176 views Asked by At

my project is on JSF 1.2 and IceFaces. It works perfectly. I thought of adding error pages, to avoid showing that ugly exceptions page. This is what I did :

web.xml

<error-page>
   <exception-type>java.lang.Exception</exception-type>
   <location>/error.xhtml</location>
</error-page>

error.xhml

<html>
<body>
    <center>
    <h1> HELLO THIS IS AN ERROR</h1>
    </center>
</body>

I made a link in the application that generates the exception. But when I click on it, I just get nothing, neither the Hello message, neither the classic exception stack trace message.

Should I add some code to FacesConfig or something?

0

There are 0 answers