[seam-issues] [JBoss JIRA] (JBSEAM-5045) Ajax error not calling ExceptionFilter
Marek Schmidt (JIRA)
jira-events at lists.jboss.org
Fri Jan 25 07:56:47 EST 2013
[ https://issues.jboss.org/browse/JBSEAM-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750524#comment-12750524 ]
Marek Schmidt commented on JBSEAM-5045:
---------------------------------------
This seems to have been working before removing the https://github.com/seam2/jboss-seam/commit/b2ba2fb81c87c04306d1530b318a9929656e7aaf so that part is indeed important ;)
> Ajax error not calling ExceptionFilter
> --------------------------------------
>
> Key: JBSEAM-5045
> URL: https://issues.jboss.org/browse/JBSEAM-5045
> Project: Seam 2
> Issue Type: Bug
> Affects Versions: 2.3.0.Final
> Reporter: Tiago Peruzzo
> Assignee: Marek Novotny
> Fix For: 2.3.1.CR1
>
> Attachments: ErrorHandlingTest.java, MockExternalContext.java, MockExternalContext.java, MockExternalContext.java, MockExternalContext.java, patch.zip
>
>
> Now that JSF2 now has support for Ajax errors Ajax requests are being processed by the JSF and not being thrown exceptions to the Seam ExceptionFilter capture.
> {code:xml}
> <exception log="true" log-level="fatal">
> <end-conversation before-redirect="true" root="true"/>
> <redirect view-id="/error.xhtml">
> <message severity="fatal">Unexpected error, please try again.</message>
> </redirect>
> </exception>
> {code}
> {code:xml}
> <h:form>
> <h:commandButton action="#{xxxx.xxxxx}" value="Submit"/>
> <h:commandButton action="#{xxxx.xxxxx}" value="Ajax Submit">
> <f:ajax />
> </h:commandButton>
> </h:form>
> {code}
> I even did a patch that still support the redirection to the error pages in AJAX requests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list