EL によって処理された例外インスタンスにアクセスすることもできます。 Seam はそれを対話コンテキストに置きます。 たとえば、 例外のメッセージにアクセスするには次のようにします。
...
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">
#{org.jboss.seam.handledException.message}
</message>
</redirect>
</exception>
</pages>
...
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">
#{org.jboss.seam.handledException.message}
</message>
</redirect>
</exception>
</pages>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
<exception class="org.jboss.seam.security.NotLoggedInException"
log="false">
<redirect view-id="/register.xhtml">
<message severity="warn">
You must be a member to use this feature
</message>
</redirect>
</exception>
<exception class="org.jboss.seam.security.NotLoggedInException"
log="false">
<redirect view-id="/register.xhtml">
<message severity="warn">
You must be a member to use this feature
</message>
</redirect>
</exception>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
<exception class="org.jboss.seam.security.NotLoggedInException"
log-level="info">
<redirect view-id="/register.xhtml">
<message severity="warn">
You must be a member to use this feature
</message>
</redirect>
</exception>
<exception class="org.jboss.seam.security.NotLoggedInException"
log-level="info">
<redirect view-id="/register.xhtml">
<message severity="warn">
You must be a member to use this feature
</message>
</redirect>
</exception>
Copy to ClipboardCopied!Toggle word wrapToggle overflow