[richfaces-issues] [JBoss JIRA] (RF-11805) a4j:queue onerror doesn't seem to work
Brian Leathem (Updated) (JIRA)
jira-events at lists.jboss.org
Thu Jan 5 23:00:09 EST 2012
[ https://issues.jboss.org/browse/RF-11805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-11805:
-------------------------------
Labels: waiting_on_user (was: )
Assignee: (was: Brian Leathem)
Forum Reference: http://community.jboss.org/message/634654#634654 (was: http://community.jboss.org/message/634654#634654)
Brendan, can you try clicking on the button a second time, to see if the expected behavior is then achieved? This would confirm that it is indeed related to RF-9118.
> a4j:queue onerror doesn't seem to work
> --------------------------------------
>
> Key: RF-11805
> URL: https://issues.jboss.org/browse/RF-11805
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.1.0.CR2
> Reporter: Brendan Healey
> Labels: waiting_on_user
>
> I was just testing some 'global' ajax error handling code. I put an <a4j:queue onerror="alert('A')"/>
> outside a form, then forced an ajax error like this:
>
> <h:inputText>
> <a4j:ajax event="blur" listener="#{myBean.forceAjaxError}"/>
> </h:inputText>
>
> public void forceAjaxError(AjaxBehaviorEvent event) {
> getResponse().setStatus(501);
> }
>
> public HttpServletResponse getResponse() {
> return (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
> }
>
> so I click into and out of the input, the ajax POST request completes with a 501 status but no alert is shown.
> I just tried it with a4j:status and this does pick up the error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list