[
https://issues.jboss.org/browse/RF-11805?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-11805:
-------------------------------
Description:
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:
{code}
<h:inputText>
<a4j:ajax event="blur" listener="#{myBean.forceAjaxError}"/>
</h:inputText>
{code}
{code}
public void forceAjaxError(AjaxBehaviorEvent event) {
getResponse().setStatus(501);
}
public HttpServletResponse getResponse() {
return (HttpServletResponse)
FacesContext.getCurrentInstance().getExternalContext().getResponse();
}
{code}
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.
was:
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.
Component/s: component-a4j-core
Forum Reference:
http://community.jboss.org/message/634654#634654 (was:
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)
Components: component-a4j-core
Affects Versions: 4.1.0.CR2
Reporter: Brendan Healey
Fix For: 4.3-Tracking
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:
{code}
<h:inputText>
<a4j:ajax event="blur" listener="#{myBean.forceAjaxError}"/>
</h:inputText>
{code}
{code}
public void forceAjaxError(AjaxBehaviorEvent event) {
getResponse().setStatus(501);
}
public HttpServletResponse getResponse() {
return (HttpServletResponse)
FacesContext.getCurrentInstance().getExternalContext().getResponse();
}
{code}
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