Make _ErrorPageWriter public to allow re-use of default functionality
---------------------------------------------------------------------
Key: MYFACES-2441
URL: https://issues.apache.org/jira/browse/MYFACES-2441
Project: MyFaces Core
Issue Type: Improvement
Affects Versions: 1.2.8
Reporter: Caius Gran
Using context parameter "org.apache.myfaces.ERROR_HANDLER", you can override
default
error handling functionality. In my case, handling ViewExpiredException's is
particularly useful,
but otherwise the default is fine.
I couldn't do the obvious, because the default error handler is hidden:
public void handleException(FacesContext fc, Exception ex) throws
ServletException, IOException
{
if (ex instanceof ViewExpiredException)
{
// redirect
}
else
{
_ErrorPageWriter.handleException(fc, ex);
}
}
Could the default error handler be exposed and perhaps renamed to something
like "DefaultErrorPageWriter"?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.