Hi,
- I have already checked the site
http://wiki.apache.org/myfaces/Handling_Server_Errors. But it is nowhere mentioned about the configuration for facelets.
- Error Pages definition is as below in my web.xml.
<!-- Error pages -->
<error-page>
<error-code>404</error-code>
<location>faces/error/ErrorPage.xhtml</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>faces/error/ErrorPage.xhtml</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>faces/error/ErrorPage.xhtml</location>
</error-page>
Actually, I want to invalidate the session before rendering the error page. For this reason, I have checked through adding a filter to my web application. Done another way by implementing PhaseListener.
With the above 2 ways, I am not getting error page properly. I found that the configuration is wrong about error page handling. It has to be done through Facelets.
Thanks,
- Srihari