[richfaces-issues] [JBoss JIRA] (RF-11740) oncomplete never called when using MyFaces 2.1.4.
Milo van der Zee (Created) (JIRA)
jira-events at lists.jboss.org
Fri Nov 25 08:36:40 EST 2011
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
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
Priority: Critical
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
More information about the richfaces-issues
mailing list