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

Pavol Pitonak (Assigned) (JIRA) jira-events at lists.jboss.org
Tue Dec 13 05:23:09 EST 2011


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

Pavol Pitonak reassigned RF-11805:
----------------------------------

    Assignee: Brian Leathem  (was: Pavol Pitonak)


Doesn't work in following environment:
{quote}
RichFaces 4.1.0-SNAPSHOT
Metamer 4.1.0-SNAPSHOT
Mojarra 2.1.3-b02
JBoss AS 7.1.0.Beta1
OpenJDK Runtime Environment 1.6.0_22-b22 @ Linux
Chrome 15.0.874.121 @ Linux i686
{quote}

Investigate if it's is 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
>            Assignee: Brian Leathem
>
> 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