[seam-commits] Seam SVN: r9041 - trunk/seam-gen/resources/WEB-INF.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sat Sep 20 04:07:46 EDT 2008


Author: dan.j.allen
Date: 2008-09-20 04:07:46 -0400 (Sat, 20 Sep 2008)
New Revision: 9041

Modified:
   trunk/seam-gen/resources/WEB-INF/pages.xml
Log:
JBSEAM-2947
add severities to messages and customize some of the strings


Modified: trunk/seam-gen/resources/WEB-INF/pages.xml
===================================================================
--- trunk/seam-gen/resources/WEB-INF/pages.xml	2008-09-20 07:50:55 UTC (rev 9040)
+++ trunk/seam-gen/resources/WEB-INF/pages.xml	2008-09-20 08:07:46 UTC (rev 9041)
@@ -12,42 +12,48 @@
                 <redirect view-id="/home.xhtml"/>
             </rule>
         </navigation>
-    </page> 
+    </page>
 
     <exception class="org.jboss.seam.framework.EntityNotFoundException">
         <redirect view-id="/error.xhtml">
-            <message>Not found</message>
+            <message severity="warn">Record not found</message>
         </redirect>
     </exception>
     
     <exception class="javax.persistence.EntityNotFoundException">
         <redirect view-id="/error.xhtml">
-            <message>Not found</message>
+            <message severity="warn">Record not found</message>
         </redirect>
     </exception>
     
+    <exception class="javax.persistence.EntityExistsException">
+        <redirect view-id="/error.xhtml">
+            <message severity="warn">Duplicate record</message>
+        </redirect>
+    </exception>
+    
     <exception class="javax.persistence.OptimisticLockException">
         <end-conversation/>
         <redirect view-id="/error.xhtml">
-            <message>Another user changed the same data, please try again</message>
+            <message severity="warn">Another user changed the same data, please try again</message>
         </redirect>
     </exception>
     
     <exception class="org.jboss.seam.security.AuthorizationException">
         <redirect view-id="/error.xhtml">
-            <message>You don't have permission to do this</message>
+            <message severity="error">You don't have permission to access this resource</message>
         </redirect>
     </exception>
     
     <exception class="org.jboss.seam.security.NotLoggedInException">
         <redirect view-id="/login.xhtml">
-            <message>Please log in first</message>
+            <message severity="warn">#{messages['org.jboss.seam.NotLoggedIn']}</message>
         </redirect>
     </exception>
     
     <exception class="javax.faces.application.ViewExpiredException">
         <redirect view-id="/error.xhtml">
-            <message>Your session has timed out, please try again</message>
+            <message severity="warn">Your session has timed out, please try again</message>
         </redirect>
     </exception>
     
@@ -57,7 +63,7 @@
      
     <exception>
         <redirect view-id="/error.xhtml">
-            <message>Unexpected error, please try again</message>
+            <message severity="error">Unexpected error, please try again</message>
         </redirect>
     </exception>
     




More information about the seam-commits mailing list