Author: dan.j.allen
Date: 2008-09-20 04:08:48 -0400 (Sat, 20 Sep 2008)
New Revision: 9042
Modified:
branches/community/Seam_2_0/seam-gen/resources/WEB-INF/pages.xml
Log:
JBSEAM-2947
add severities to messages and customize some of the strings
Modified: branches/community/Seam_2_0/seam-gen/resources/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/resources/WEB-INF/pages.xml 2008-09-20 08:07:46
UTC (rev 9041)
+++ branches/community/Seam_2_0/seam-gen/resources/WEB-INF/pages.xml 2008-09-20 08:08:48
UTC (rev 9042)
@@ -12,20 +12,26 @@
<redirect view-id="/home.xhtml"/>
</rule>
</navigation>
- </page>
+ </page>
<exception class="org.jboss.seam.framework.EntityNotFoundException">
<redirect view-id="/error.xhtml">
- <message severity="warn">Not found</message>
+ <message severity="warn">Record not found</message>
</redirect>
</exception>
<exception class="javax.persistence.EntityNotFoundException">
<redirect view-id="/error.xhtml">
- <message severity="warn">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">
@@ -35,13 +41,13 @@
<exception class="org.jboss.seam.security.AuthorizationException">
<redirect view-id="/error.xhtml">
- <message severity="error">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 severity="warn">Please log in first</message>
+ <message
severity="warn">#{messages['org.jboss.seam.NotLoggedIn']}</message>
</redirect>
</exception>
Show replies by date