[richfaces-issues] [JBoss JIRA] (RF-11805) a4j:queue onerror doesn't seem to work

SBS JIRA Integration (Updated) (JIRA) jira-events at lists.jboss.org
Mon Dec 12 02:59:11 EST 2011


     [ https://issues.jboss.org/browse/RF-11805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

SBS JIRA Integration updated RF-11805:
--------------------------------------

    Forum Reference: http://community.jboss.org/message/634654#634654

    
> 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
>
> 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