[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Christian Bauer
christian at hibernate.org
Sat Mar 10 05:32:12 EST 2007
User: cbauer
Date: 07/03/10 05:32:12
Modified: doc/reference/en/modules events.xml
Log:
Fixed and documented exception passing to handler, JBSEAM-1021
Revision Changes Path
1.19 +19 -0 jboss-seam/doc/reference/en/modules/events.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: events.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/events.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- events.xml 8 Mar 2007 04:32:22 -0000 1.18
+++ events.xml 10 Mar 2007 10:32:12 -0000 1.19
@@ -849,6 +849,25 @@
via annotations or in <literal>pages.xml</literal>.
</para>
+ <para>
+ You can also access the handled exception instance through EL, Seam places it in the
+ conversation context, e.g. to access the message of the exception:
+ </para>
+
+ <programlisting><![CDATA[...
+throw new AuthorizationException("You are not allowed to do this!");
+
+<pages>
+
+ <exception class="org.jboss.seam.security.AuthorizationException">
+ <end-conversation/>
+ <redirect view-id="/error.xhtml">
+ <message severity="WARN">#{handledException.message}</message>
+ </redirect>
+ </exception>
+
+</pages>]]></programlisting>
+
</sect2>
</sect1>
More information about the jboss-cvs-commits
mailing list