Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
https://cwiki.apache.org/confluence/display/MYFACES/Handling+Server+Errors
Current version:
Provide an error page
The default ExceptionHandler in Production stage or when myfaces error handling is disabled just throw an exception. So you can still setup an error page adding something like this in your web.xml file:<error-page> <error-code>500</error-code> <location>/somepage.jsp</location> </error-page>
Should be:
Provide an error page
If org.apache.myfaces.ERROR_HANDLING is set to "false", or if it is undefined and the project stage is "Development", the default ExceptionHandler just throws an exception. So you can still setup an error page by adding something like this in your web.xml file:<error-page> <error-code>500</error-code> <location>/somepage.jsp</location> </error-page>
Changes
- Corrected the explanation of the behavior of the default ExceptionHandler.
- Improved the grammar.