0 Replies Latest reply on Aug 31, 2007 6:39 AM by dxxvi

    what's my problem: a4j:support doesn't work anymore after re

      Hi everybody,

      This is my managed bean:

       private List<Integer> userIds;
      
       public void addRow(ActionEvent e) {
       userIds.add(5);
       }
      
       // getter and setter for userIds


      This is my xhtml page:
      <a4j:form id="formId">
       <h:panelGroup id="userIdsTable">
       <rich:dataTable var="userId" value="#{hBean.userIds}" id="dataTableId">
       <rich:column><h:inputText value="#{userId}"/></rich:column>
       <rich:column>
       <h:graphicImage value="/images/add-row.gif">
       <a4j:support event="onclick" actionListener="#{hBean.addRow}" reRender="userIdsTable"/>
       </h:graphicImage>
       </rich:column>
       </rich:dataTable>
       </h:panelGroup>
      </a4j:form>
      


      I can click on the image the 1st time and the addRow method is called. But after that, nothing is working anymore. Where's my problem? :(