title: Function no called on jsf
body: <p>I'm having some problems with the a4jFunction. I need to eliminate data from dataTable, the getters and setters are working, the PopUp pannel works fine, but the function is not called.</p>
  
  <p>See this code:</p>
  
  <pre><code>&lt;h:panelGrid id="panelGridDataT" style="margin-left:300px"&gt;
          &lt;h:form id="form" &gt;
              &lt;rich:dataTable
                  style="margin-left:70px;height:200px; width:500px;overflow:auto"
                  value="#{ListSelectBean.listUser}" var="_tblUser" iterationStatusVar="it"
                  id="table" rows="5"&gt;
                  &lt;rich:column&gt;
                      &lt;f:facet name="header"&gt;#&lt;/f:facet&gt;
                       #{it.index}
                  &lt;/rich:column&gt;
                  &lt;rich:column&gt;
                      &lt;f:facet name="header"&gt;Name&lt;/f:facet&gt;
                      &lt;h:outputText value="#{_tblUser.name}" /&gt;
                  &lt;/rich:column&gt;
                  &lt;rich:column&gt;
                      &lt;f:facet name="header"&gt;User Name&lt;/f:facet&gt;
                      &lt;h:outputText value="#{_tblUser.username}" /&gt;
                  &lt;/rich:column&gt;
                  &lt;rich:column&gt;
                      &lt;f:facet name="header"&gt;Role&lt;/f:facet&gt;
                      &lt;h:outputText value="#{_tblUser.roles}" /&gt;
                  &lt;/rich:column&gt;
                  &lt;rich:column style="width:40px"&gt;
                  &lt;f:facet name="header"&gt;Delete&lt;/f:facet&gt;
                      &lt;a4j:commandLink style="padding:10px" execute="@this" render="@none" onclick="#{rich:component('confirmPane')}.show()"&gt;
                          &lt;h:graphicImage value="/img/delete.gif" style="width:20px;height:20px" alt="delete" /&gt;
                      &lt;!--  &lt;a4j:param value="#{it.index}"    assignTo="#{ListSelectBean.currentUserIndex}" /&gt;--&gt; 
                          &lt;f:setPropertyActionListener target="#{ListSelectBean.deleteUser}" value="#{_tblUser}" /&gt;
                      &lt;/a4j:commandLink&gt;
                  &lt;/rich:column&gt;
                  &lt;rich:column style="width:40px"&gt;
                  &lt;f:facet name="header"&gt;Edit&lt;/f:facet&gt;
                  &lt;a4j:commandLink style="padding:10px" render="editGrid" action="#{ListSelectBean.asingEdit()}" execute="@this" onclick="#{rich:component('editPane')}.show() "&gt;
                          &lt;h:graphicImage value="/img/edit.gif" style="width:20px;height:20px" alt="edit"  /&gt;
                          &lt;a4j:param value="#{it.index}" assignTo="#{ListSelectBean.currentUserIndex}" /&gt;
                          &lt;f:setPropertyActionListener target="#{ListSelectBean.editedUser}" value="#{_tblUser}" /&gt;
                  &lt;/a4j:commandLink&gt;
                  &lt;/rich:column&gt;
                  &lt;f:facet name="footer"&gt;
                      &lt;rich:dataScroller page="#{ListSelectBean.page}" style="margin-left:40px"/&gt;
                      &lt;h:commandButton value="Add New" id="Add" style="margin-left:40px" &gt;
                          &lt;rich:componentControl target="New_User" operation="show"/&gt;
                      &lt;/h:commandButton&gt;
                  &lt;/f:facet&gt;
              &lt;/rich:dataTable&gt;
  
              &lt;a4j:jsFunction name="DeleteUser" id="DeleteUser" action="#{ListSelectBean.DeleteUser()}" render="@all" execute="@all"
                   /&gt;
  
              &lt;rich:popupPanel id="confirmPane" autosized="true"&gt;
                       Are you sure you want to delete the row?
                  &lt;a4j:commandButton value="Cancel" onclick="#{rich:component('confirmPane')}.hide(); return false;" render="form" /&gt;
                  &lt;a4j:commandButton value="Delete" onclick="DeleteUser();" oncomplete="#{rich:component('confirmPane')}.hide();"&gt;
                  &lt;a4j:param value="#{it.index}"  assignTo="#{ListSelectBean.currentUserIndex}" /&gt;    
                      &lt;f:ajax render="@all" execute="@all" /&gt;
                  &lt;/a4j:commandButton&gt;
              &lt;/rich:popupPanel&gt;
  
              &lt;rich:popupPanel id="statPane" autosized="true"&gt;
                  &lt;h:graphicImage value="/images/ai.gif" alt="ai" /&gt;
                  Please wait...
              &lt;/rich:popupPanel&gt;
  
              &lt;rich:popupPanel header="Edit User Details" id="editPane"
                  domElementAttachment="form" width="400" height="170"&gt;
                  &lt;h:panelGrid columns="4" id="editGrid"&gt;
                      &lt;h:outputText value="Name" /&gt;
                      &lt;h:inputText value="#{ListSelectBean.nwname }" /&gt;
                      &lt;h:outputText value="username" /&gt;
                      &lt;h:inputText value="#{ListSelectBean.nwusername}" /&gt;
                      &lt;h:outputText value="Pasword" /&gt;
                      &lt;h:inputText value="#{ListSelectBean.nwpassword}" /&gt;
                      &lt;h:outputText value="Email" /&gt;
                      &lt;h:inputText value="#{ListSelectBean.nwemail}" /&gt;
  
                  &lt;/h:panelGrid&gt;
                  &lt;a4j:commandButton value="Store" action="#{ListSelectBean.storeUser}" render="table" execute="editPane" 
                  style="position: absolute; right: 10px; bottom: 10px" 
                  oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('editPane')}.hide();}" /&gt;
                  &lt;a4j:commandButton value="Cancel" style="position: absolute; right: 60px; bottom: 10px" 
                      onclick="#{rich:component('editPane')}.hide(); return false;" /&gt;
              &lt;/rich:popupPanel&gt;
  
          &lt;/h:form&gt;
  
  
      &lt;/h:panelGrid&gt;
  </code></pre>
  
  <p>There is a lot code, I need focus on:</p>
  
  <pre><code>&lt;rich:column style="width:40px"&gt;
              &lt;f:facet name="header"&gt;Delete&lt;/f:facet&gt;
                  &lt;a4j:commandLink style="padding:10px" execute="@this" render="@none" onclick="#{rich:component('confirmPane')}.show()"&gt;
                      &lt;h:graphicImage value="/img/delete.gif" style="width:20px;height:20px" alt="delete" /&gt;
                  &lt;!--  &lt;a4j:param value="#{it.index}"    assignTo="#{ListSelectBean.currentUserIndex}" /&gt;--&gt; 
                      &lt;f:setPropertyActionListener target="#{ListSelectBean.deleteUser}" value="#{_tblUser}" /&gt;
                  &lt;/a4j:commandLink&gt; &lt;/rich:column&gt;
  </code></pre>
  
  <p>the parameters   works fine, but this next doesn't:</p>
  
  <pre><code>&lt;a4j:jsFunction name="DeleteUser" id="DeleteUser" action="#{ListSelectBean.DeleteUser()}" render="@all" execute="@all"
                   /&gt;
  
              &lt;rich:popupPanel id="confirmPane" autosized="true"&gt;
                       Are you sure you want to delete the row?
                  &lt;a4j:commandButton value="Cancel" onclick="#{rich:component('confirmPane')}.hide(); return false;" render="form" /&gt;
                  &lt;a4j:commandButton value="Delete" onclick="DeleteUser();" oncomplete="#{rich:component('confirmPane')}.hide();"&gt;
                  &lt;a4j:param value="#{it.index}"  assignTo="#{ListSelectBean.currentUserIndex}" /&gt;    
                      &lt;f:ajax render="@all" execute="@all" /&gt;
                  &lt;/a4j:commandButton&gt;
              &lt;/rich:popupPanel&gt;
  </code></pre>
  
  <p>Ihis is the bean if anyone needs it:</p>
  
  <pre><code>private TblUser editedUser;
  private TblUser deleteUser;
  private int currentUserIndex;
  private int UserRows;
  private int page = 1;
  private String Nwemail;
  private String Nwname;
  private String Nwpassword;
  private String Nwroles;
  private String Nwusername;
  private String Nwtokenid; 
  private short Nwuserid;
  private Long Nwuseroleid;
  
  @DataModel
  private List&lt;TblUser&gt; ListUser;
  
  @DataModelSelection("ListUser")
  @Out (required=false)
  private TblUser selected;
  
  
  @SuppressWarnings("unchecked")
  @Factory(value="ListUser")
  
  
  public List&lt;TblUser&gt; selectedList(){
  
      ListUser = null;
  
      if (ListUser == null){
  
  
          try{
          ListUser=entityManager.createQuery("select u from TblUser u").getResultList();
          }catch(NoResultException e) {
              System.out.print("Error"+e.getMessage());
          }   
          }
          return ListUser;
      }
  
  
  
  public void DeleteUser()
  {
      try{
      entityManager.createQuery("Delete TblUser where userid = :userid")
      .setParameter("userid", deleteUser.getUserid())
      .executeUpdate();
      //refreshPage();
      }
      catch (NoResultException e)
      {
          System.out.print("error: "+ e.getMessage());
      }}
  </code></pre>
  
  <p>I will appreciate if anyone helps me!</p>