[
https://issues.jboss.org/browse/RF-11740?page=com.atlassian.jira.plugin.s...
]
Luca Graf edited comment on RF-11740 at 11/26/11 11:26 AM:
-----------------------------------------------------------
I observed the same also with older myfaces releases (2.0.7/2.0.10).
was (Author: luc4):
I observed the same also with older myfaces releases (2.0.7/2.0.10). It would be great
if this issue can be addressed in the 4.1.0.Final release.
oncomplete never called when using MyFaces 2.1.4.
-------------------------------------------------
Key: RF-11740
URL:
https://issues.jboss.org/browse/RF-11740
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-a4j-core
Affects Versions: 4.1.0.CR1
Environment: richfaces-4.1.0.20111111-CR1, MyFaces 2.1.4, Tomcat 7.0.21
Reporter: Milo van der Zee
Labels: myfaces
Fix For: 4.2.0.Tracking
The oncomplete of button1 is never called. Button3 works as expected and also the
oncomplete event is fired. Seems like RF4.1 has a small javascript bug that fails to
handle the event.
{code:title=test.xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:vm="http://java.sun.com/jsf/composite/vm"
>
<h:head>
</h:head>
<body>
<a4j:log level="INFO" mode="popup" hotkey="M"/>
<!-- Ctrl+Shift+M -->
<h:form id="form1">
<a4j:commandButton id="button1" value="button1"
onbegin="console.log('button1 begin');"
oncomplete="console.log('button1 complete');"
execute="@none" bypassUpdates="true" immediate="true"
render="@none"
>
<a4j:ajax event="begin" onbegin="console.log('begin
ajax');" oncomplete="console.log('complete ajax');"/>
</a4j:commandButton>
</h:form>
<!-- <vm:testje id="testje"/> -->
<h:form id="form3">
<h:commandButton value="button3">
<f:ajax onevent="handler"/>
</h:commandButton>
<script>
function handler(event) {
console.log('handler: '+event.status);
}
</script>
</h:form>
</body>
</html>
{code}
--
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