[jboss-cvs] jboss-seam/seam-gen/resources/WEB-INF ...
Gavin King
gavin.king at jboss.com
Sun Feb 4 03:48:42 EST 2007
User: gavin
Date: 07/02/04 03:48:42
Added: seam-gen/resources/WEB-INF pages.xml
Log:
added exception mappings
Revision Changes Path
1.1 date: 2007/02/04 08:48:42; author: gavin; state: Exp;jboss-seam/seam-gen/resources/WEB-INF/pages.xml
Index: pages.xml
===================================================================
<!DOCTYPE pages PUBLIC
"-//JBoss/Seam Pages Configuration DTD 1.1//EN"
"http://jboss.com/products/seam/pages-1.1.dtd">
<pages>
<exception class="javax.persistence.EntityNotFoundException">
<redirect view-id="/error.xhtml">
<faces-message>Not found</faces-message>
</redirect>
</exception>
<exception class="javax.persistence.OptimisticLockException">
<redirect view-id="/error.xhtml">
<faces-message>Another user changed the same data, please try again</faces-message>
</redirect>
</exception>
<exception class="org.jboss.seam.security.AuthorizationException">
<redirect view-id="/error.xhtml">
<faces-message>You don't have permission to do this</faces-message>
</redirect>
</exception>
<exception class="org.jboss.seam.security.NotLoggedInException">
<redirect view-id="/login.xhtml">
<faces-message>Please log in first</faces-message>
</redirect>
</exception>
<exception>
<redirect view-id="/error.xhtml">
<faces-message>Unexpected error, please try again</faces-message>
</redirect>
</exception>
</pages>
More information about the jboss-cvs-commits
mailing list