2 Replies Latest reply on Oct 25, 2009 1:34 PM by Nick Belaevski

    a4J:support not working inside h:datatable as required

    nirvan buddha Newbie

      I have an h:datatable which I am using for data entry. Initially I display only one empty row. When the user tabs out of last cell of the table, another empty row is presented to user. My problem is that for the first row in h:datatable, the ajax call (a4j:support) element works well and presents new empty row, but for the subsequent rows, the actionListener method does not get called.

      Here is the code I am using.

      <h:dataTable id="employeeEnter" value="#{addRowsBean.empDOList}" var="empDO"
       border="5">
      .....
      
       <h:inputText value="#{empDO.deptId}" >
       <a4j:support actionListener="#{addRowsBean.addEmptyAction}"
       event="onblur" reRender="employeeEnter, employeeList"/>
      
       </h:inputText>
       </h:column>
      </h:dataTable>
      


      Here other than for the first time, addEmptyAction is not getting called.

      regards,
      nirvan.