File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom error page in JSF.

 
Robin Sharma
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17616
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really. But I've found that Facelets can make it less of a guessing game.
 
Robin Sharma
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic