I am getting JBoss Seam debug page for a NPE.
This is the catchall exception config in pages.xml:
<exception> <redirect view-id="/error.xhtml"> <message>Unexpected error, please try again</message> </redirect> </exception>
will that not catch and redirect a NPE (or any other Runtime Exception) to error.xhtml?
or do I have to turn off debug below in components.xml?
<core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
when facelets is in the debug mode it will catch this exception first. i think if u do this
<context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>false</param-value> </context-param>
you will get ur error page.