Thanks for responding. Unfortunately that doesn't work for PhaseListeners because MyFaces PhaseListenerManager swallows the exception without allowing the Servlet container to redirect to the error page (specified in web.xml).
Perhaps I should log this as an issue in MyFaces?
Adam Brod
Product Development Team
| "Cagatay Civici"
<[EMAIL PROTECTED]>
07/10/2006 12:51 PM
|
|
This could help;
http://wiki.apache.org/myfaces/Handling_Server_Errors
Cagatay
On 7/10/06, Adam Brod <[EMAIL PROTECTED]> wrote:
Hi-
I have a PhaseListener that does some business logic. If there is a RuntimeException, I want to automatically redirect to my error page. With my PhaseListener, if it throws a RuntimeException, the exception is swallowed and logged in PhaseListenerManager.informPhaseListenersAfter(...).
What is the best way to redirect all such errors to the error page? In standard Servlets land, you just declare the exception and the error page in the web.xml file. That is done once, and it works for the entire web-app. Is there another way to support this in JSF with PhaseListeners?
Thanks,
Adam Brod
Product Development Team
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

