Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4012

Documentation wrong about Error handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • website
    • 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.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            mattalxndr Matthew Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: