3 Replies Latest reply on Mar 17, 2011 2:12 PM by Nick Belaevski

    a4j:ajax listener not fired

    Matt Choate Newbie

      I have the following facelets code (simplified for posting)

       

      {code}

      <a4j:repeat id="repeat1" var="column" value="#{homepageController.panelColumns}">

             <div class="column">

                  <a4j:repeat id="repeat2" var="panel" value="#{column.visiblePanels}"              

                     <h:dataTable id="taskTable" value="#{homepageController.tasks}" var="task" >

                          <h:column>                                            

                              <h:selectBooleanCheckbox value="#{task.complete}" rendered="#{task.hasEditPermission}">   

                                  <a4j:ajax event="change" execute="@this" render="taskTable" listener="#{homepageController.toggleTaskDone}">

                                  </a4j:ajax>                                               

                              </h:selectBooleanCheckbox>      

                          </h:column>

                      </h:dataTable>

                  </a4j:repeat>

              <div>

      </a4j:repeat>

      {code}

       

      Everything renders properly but the listener on the checkbox is not fired when it is clicked. If I take this code out of the a4j:repeat it all works. Any ideas? I am using Mojarra 2.0.3 and JBoss 6 and Richfaces 4.0 M6

       

      -matt