title: DataTable editMode primefaces
body: <p>I would like to use the p:datatable of primefaces with cellEdit mode <a href="https://www.primefaces.org/showcase/ui/data/datatable/edit.xhtml" rel="nofollow noreferrer">https://www.primefaces.org/showcase/ui/data/datatable/edit.xhtml</a>.</p>
  
  <p>When i use this code</p>
  
  <pre><code>public void onCellEdit(CellEditEvent event) {  
      Object oldValue = event.getOldValue();  
      Object newValue = event.getNewValue();  
  
   String id =   event.getComponent().getClientId();
  }  
  </code></pre>
  
  <p>The 'id' that i get is form 'event.getComponent().getClientId();' is for datatable and not for the cell that i have just modified?</p>
  
  <p>How i can get the client id of the edit cell?</p>
  
  <p>Thanks</p>