• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF2 error handling

 
eddy johns
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm successfully using the method described here to catch errors in a JSF2 application. But one issue is still unresolved. When an error is thrown, I'm sending the users back to the home page. This works fine. But what I'd like to do is invalidate their session, and let them know we're having technical difficulties. Is there a way to do that?

Thanks!
 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Render a composite component to be displayed for in case of error message, then invalidate your session. Have your home page link on that composite component with error message you wanted to convey the user to know.
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invalidating a session on error is a bit extreme. Aside from everything else, it will log out the user, if the app is using standard J2EE security. And for that matter, most DIY security schemes as well.

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