[richfaces-issues] [JBoss JIRA] (RF-11740) oncomplete never called when using MyFaces 2.1.4.

Milo van der Zee (Commented) (JIRA) jira-events at lists.jboss.org
Sun Nov 27 17:44:40 EST 2011


    [ https://issues.jboss.org/browse/RF-11740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645759#comment-12645759 ] 

Milo van der Zee commented on RF-11740:
---------------------------------------

If anybody could give me an indication of where to look in the source code I'll probably be able to fix this. Can't be very complicated because MyFaces does send the events. It's just that the richfaces wrapper does not capture it. It has to be a common wrapper because a4j:ajax, a4j:jsFunction and also a4j:commandButton show the same behavior. I assume all a4j components act exactly the same.
                
> 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

        


More information about the richfaces-issues mailing list