aspose file tools*
The moose likes JSF and the fly likes Custom error page in JSF. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom error page in JSF." Watch "Custom error page in JSF." New topic
Author

Custom error page in JSF.

Robin Sharma
Ranch Hand

Joined: Aug 24, 2005
Posts: 76
Hi!

By default, if an exception occurs in a JSF application, it blurts out a very ugly stack trace onto the console. I want it to be presented in a nice form with proper information about the various backing beans, the request, session states, etc and finally the stack trace.

Is there a way to present such a customized error page.

Thanks.


DW
There is always a bug :-)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

Not really. But I've found that Facelets can make it less of a guessing game.


Customer surveys are for companies who didn't pay proper attention to begin with.
Robin Sharma
Ranch Hand

Joined: Aug 24, 2005
Posts: 76
Originally posted by Tim Holloway:
Not really. But I've found that Facelets can make it less of a guessing game.


Hi Tim!

I am aware of the Facelets api but unfortunately, currently, i have to stick to the JSF-JSP combo. Is there a way to, maybe, develop some custom component, which would sort of give a much better picture of the JSF environ when an exception occurs. Like, if you use the "Wicket" framework, it exactly pinpoints where the problem, which is something, yet again, missing in JSF :-(

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom error page in JSF.
 
Similar Threads
Tomcat and jdbc problem
Custom JSF Error Page not displaying
constructor problems
how to handle errors in JSF
Error in Login app using spring mvc