Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom error page in JSF.

 
Robin Sharma
Ranch Hand
Posts: 76
  • 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: 18156
53
Android Eclipse IDE Linux
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic