EMBJOPR SVN: r1013 - trunk/core/src/main/webapp/WEB-INF.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2011-01-04 17:27:18 -0500 (Tue, 04 Jan 2011)
New Revision: 1013
Modified:
trunk/core/src/main/webapp/WEB-INF/exceptions.xml
Log:
handle ViewExpiredExceptions gracefully
Modified: trunk/core/src/main/webapp/WEB-INF/exceptions.xml
===================================================================
--- trunk/core/src/main/webapp/WEB-INF/exceptions.xml 2010-12-22 19:59:56 UTC (rev 1012)
+++ trunk/core/src/main/webapp/WEB-INF/exceptions.xml 2011-01-04 22:27:18 UTC (rev 1013)
@@ -1,6 +1,6 @@
<!--
~ Embedded Jopr Project
- ~ Copyright (C) 2006-2009 Red Hat, Inc.
+ ~ Copyright (C) 2006-2011 Red Hat, Inc.
~ All rights reserved.
~
~ This program is free software; you can redistribute it and/or modify
@@ -30,6 +30,13 @@
</redirect>
</exception>
+ <!-- Session Expiration Exceptions -->
+ <exception class="javax.faces.application.ViewExpiredException">
+ <redirect view-id="/login.xhtml">
+ <message>The session has expired. Please log in again.</message>
+ </redirect>
+ </exception>
+
<!-- Catch-all for all other Exceptions-->
<exception class="java.lang.Exception">
<end-conversation/>