Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error Handling- System Errors

 
Jack pero
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need a common page for system error handling. Is there any specific mechanism in JSF. Means, for each type of exception it should take me to a common error page. How do i do it with JSF.
Need some guidence.
Thanks..
Jack
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create an error page and define a navigation for it in faces-config.xml. You can redirect to this error page when an exception occurs in your application. Hope it helps.

Thanks,
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see

http://wiki.apache.org/myfaces/Handling_Server_Errors

and

http://wiki.apache.org/myfaces/Displaying_Errors/Infos/Warnings_in_JSF_Pages
 
Jack pero
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks alot for your replies, i'll try them out and let you know if it works.

jack
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!