<redirect> Exception handler with no <message> queues the handled
Exception's message
-------------------------------------------------------------------------------------
Key: JBSEAM-4527
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4527
Project: Seam
Issue Type: Bug
Components: Exception Handling
Affects Versions: 2.1.2.GA
Reporter: Chris Bredesen
Priority: Minor
Given the following simple exception handler...
<exception>
<redirect view-id="/error.xhtml" />
</exception>
... one might expect that, based on the lack of a <message/> element within, no
FacesMessage would get enqueued when an Exception is handled. However, this is not the
case. Navigator.getDisplayMessage() falls back to e.getMessage() when the literal message
is null which is in fact the case when there is no <message/> element.
Since Seam provides for syntax such as this...
<exception>
<redirect view-id="/error.xhtml">
<message
severity="WARN">#{org.jboss.seam.handledException.message}</message>
</redirect>
</exception>
... it is this user's belief that the default behavior should be to omit any message
when the configuration specifies a <redirect> with no <message>.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira