3 Replies Latest reply on Apr 2, 2012 6:01 AM by Brendan Healey

    since richfaces 4.2.0 a4j:ajax listener doesn't work

    Peter Butkovic Newbie


      WinXP, JDK 1.6.0_26, Jetty 6, richfaces 4.2.0Final


      problem desc:

      Since upgrade from richfaces 4.1 to 4.2.0 I'm not able to use a4j:ajax listener any more, since error is thrown on page opening in browser.

      For some reason content of listener is evaluated as bean's property rather than method.



      Following code throws error.


      relevant xhtml chunk:

                      <h:selectOneRadio value="#{mainView.role}" layout="pageDirection">

                          <a4j:ajax event="change" listener="#{mainView.roleChanged}"

                              render="schedulePanel okButton" />

                          <f:selectItems value="#{mainView.roles}" />



      relevant bean code:

      public void roleChanged(AjaxBehaviorEvent event) {


      error thrown:

      2012-04-01 09:02:44.750:WARN::/yourpresenter/main.jsf

      javax.el.ELException: /main.xhtml: The class 'com.google.code.yourpresenter.view.MainView' does not have the property 'roleChanged'.

          at com.sun.faces.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:94)

          at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)

          at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183)

          at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)

          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)



      Should I fill a bug for this or is there a problem in my code?