Two Laptop Bag
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


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: 17033
    
  26

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


An IDE is no substitute for an Intelligent Developer.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Custom error page in JSF.
 
It's not a secret anymore!