On 24/07/2012 10:32, Leonardo Uribe wrote:
HiI tried the following example: <h:form id="mainForm"> <test:ajaxPanel2 onRowEditListener="#{ajaxListenerBean.ajaxRender}" value="#{ajaxListenerBean.value}"/> </h:form> ajaxPanel2.xhtml <cc:interface> <cc:attribute name="onRowEditListener" required="false" method-signature="void listener(javax.faces.event.AjaxBehaviorEvent)"/> <cc:attribute name="value"/> </cc:interface> <cc:implementation> <test:ajaxContent onRowEditListener="#{cc.attrs.onRowEditListener}"> <h:outputText value="#{cc.attrs.value}" /> </test:ajaxContent> </cc:implementation> ajaxContent.xhtml <cc:interface> <cc:attribute name="onRowEditListener" required="false" method-signature="void listener(javax.faces.event.AjaxBehaviorEvent)"/> </cc:interface> <cc:implementation> <h:commandButton value="Press me"> <f:ajax render="content" listener="#{cc.attrs.onRowEditListener}" /> </h:commandButton> <h:panelGroup id="content" layout="block"> <cc:insertChildren/> </h:panelGroup> </cc:implementation> @ManagedBean @RequestScoped public class AjaxListenerBean { private String value; /*... getter and setter ..*/ public void ajaxRender(AjaxBehaviorEvent evt) { value = Double.toString(Math.random()); System.out.println("value ="+value); } } Works without problem. I'm using jetty maven plugin 8.1.3.v20120416 , which uses glassfish EL. There is no evidence so far that there is a bug in MyFaces. That part has been tested intensively. I think it is a bug in tomcat EL implementation or maybe something related to openwebbeans EL10ValueExpression.
I just tried your example. It works. Maybe the problem is primefaces related. I will ask on PrimeFaces forum. Thanks, Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |

