users@javaserverfaces.java.net

FacesServlet throwing ServletExceptions

From: Kito D. Mann <kmann_at_virtua.com>
Date: Sat, 3 May 2008 00:00:23 -0400

I noticed that when Mojarra throws a ViewExpiredException, that exception is
wrapped by FacesServlet as a ServletException and re-thrown. Since
FacesException is a RuntimeException, what's the problem with actually
letting the exception percolate up to the container so that we can use the
standard Servlet error page mechanism for these exceptions?

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann - Author, JavaServer Faces in Action
 <http://www.virtua.com/> http://www.virtua.com - JSF/Java EE consulting,
training, and mentoring
 <http://www.jsfcentral.com/> http://www.JSFCentral.com - JavaServer Faces
FAQ, news, and info
phone: +1 203-653-2989
fax: +1 203-653-2988