Redirecting Error Handler 
--------------------------

                 Key: MYFACES-1711
                 URL: https://issues.apache.org/jira/browse/MYFACES-1711
             Project: MyFaces Core
          Issue Type: New Feature
          Components: General
    Affects Versions: 1.2.1-SNAPSHOT
            Reporter: Thomas Fischer
            Priority: Minor
         Attachments: ChangedParametersRequestWrapper.java

This patch provides an error handler which redirects the user to an error page 
if an error occurs. The features are:
- the error page can be a jsf page
- the error page is customizable by overriding a method in the error handler
- loop detection (i.e. if an error occurs on the error page, an exception is 
thrown instead of endlessly looping)
- no redirect is sent to the browser(i.e. all request scoped attributes survive 
the redirect)

The error handler works by cleaning all HTTP request parameters from the 
request and dispatching the cleaned request to the error page. Cleaning the 
request parameters is necessary because myfaces gets confused if the error 
occurs in a postback and the error page is a jsf page. 
The original request parameters can be retrieved by casting the request to 
HttpServletRequestWrapper, retrieving its wrapped request by getRequest() and 
asking the wrapped request for the request parameters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to