Sure; just override the specific method(s) where you catch for an exception and 
implement alternative logic when you catch one.
 
There's also the handleExceptionFromLifecycle() method which will get called 
when an exception is thrown; other than the Throwable that needs intercepting, 
though, I don't see any particular way that you might use it to redirect and/or 
forward somewhere else though.

-----Original Message-----
From: Stefan Gesigora [mailto:[EMAIL PROTECTED]
Sent: Monday, November 27, 2006 10:08 AM
To: MyFaces Discussion
Subject: exception handling in subclass of MyFacesGenericPortlet


Hi folks!

Is there a way to handle exceptions in a subclass of the MyFacesGenericPortlet?
I want to show a different page with a different message if an exception is 
thrown.

regards 
Steven


Reply via email to