0 Replies Latest reply on Feb 17, 2018 12:36 AM by krish naik

    a4j commandLink not working with in a4j repeat

    krish naik Newbie

      Here is my code :

       

       

             <a4j:repeat ......>

             <rich:datatable>

             <rich:column>

                 <a4j:commandLink value="Edit" action="#{poReceiptBean.testMethod()}"

                  actionListener="#{poReceiptBean.addRowListener}" oncomplete="#

                   {rich:component('editReceiptModal')}.show();"></a4j:commandLink>

             </rich:column>

             </rich:datatable>

             </a4j:repeat>

       

      Bean :

       

       

              public void addRowListener(ActionEvent event){

                 addInventoryRow = true;

              }

              public void testMethod() {

                 System.out.println("hi");

              }

       

       

      both action and actionListener are not invoking bean methods. how to resolve this issue? any help would be appreciated.