Hi everybody,
This is my managed bean:
private List<Integer> userIds; public void addRow(ActionEvent e) { userIds.add(5); } // getter and setter for userIds
<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>