title: PrimeFaces data table In-Cell Editing : I can't get the edited object
body: <p>I'm experimenting with <a href="http://www.primefaces.org/showcase/ui/datatableCellEditing.jsf" rel="nofollow noreferrer">DataTable - Cell Editing</a> as shown in PrimeFaces showcase. I've modified the Facelets code as consequence of this question: <a href="https://stackoverflow.com/questions/19973172/primefaces-in-cell-editing-not-update-data-in-database">primefaces in-cell-editing not update data in database</a> because the <code>&lt;p:ajax event="cellEdit"&gt;</code> didn't update the entire data table.</p>
  
  <pre><code>&lt;h:form id="form"&gt;            
      &lt;p:outputPanel id="testContainer" deferred="true"&gt;   
          &lt;p:growl id="messages" showDetail="true" /&gt;  
          &lt;p:remoteCommand name="onCellEdit" action="#{articlesbean.onCellEdit()}" update=":form:messages" /&gt;
          &lt;p:dataTable id="cars" var="car" value="#{articlesbean.LMatpilotaccess1}" editable="true" editMode="cell" widgetVar="carsTable" update=":cars"&gt;  
              &lt;p:ajax event="cellEdit" oncomplete="onCellEdit()"  /&gt; 
              ...
          &lt;/p:dataTable&gt;  
      &lt;/p:outputPanel&gt; 
  &lt;/h:form&gt;
  </code></pre>
  
  <p>The remote command action method is definied as follows:</p>
  
  <pre><code>public void onCellEdit(CellEditEvent event) {  
      Object oldValue = event.getOldValue();  
      Object newValue = event.getNewValue();  
  
      if(newValue != null &amp;&amp; !newValue.equals(oldValue)) {  
          FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Cell Changed", "Old: " + oldValue + ", New:" + newValue);  
          FacesContext.getCurrentInstance().addMessage(null, msg);  
      }  
  }  
  </code></pre>
  
  <p>However, this method is never invoked and the following exception is thrown:</p>
  
  <pre><code>javax.el.MethodNotFoundException: Method not found: com.pfe.controller.ArticlesBean@1bb3a11.onCellEdit()
  </code></pre>
  
  <p>When I remove the <code>CellEditEvent</code> argument, then it works. But I actually need the old and the new value. How can I proceed?</p>