title: How to update specific row in Primefaces datatable
body: <p>Primefaces 3.5, Mojarra 2.1.14. This is my PF datatable, it contains one non-editable boolean column named 'automatic', and editable 'label' column:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;p:dataTable value="#{bean.contents}" paginator="true" var="row" 
    editable="true" editMode="cell" rows="25" rowsPerPageTemplate="10,25,50" id="list"&gt;
      &lt;p:column&gt;
          &lt;f:facet name="header"&gt;&lt;h:outputText value="header1" /&gt;&lt;/f:facet&gt;
          &lt;p:selectBooleanCheckbox value="#{row.automatic}" disabled="true" id="isAutomatic"&gt;&lt;/p:selectBooleanCheckbox&gt;
      &lt;/p:column&gt;
      &lt;p:column&gt;
          &lt;f:facet name="header"&gt;&lt;h:outputText value="header2" /&gt;&lt;/f:facet&gt;
          &lt;p:cellEditor&gt;
              &lt;f:facet name="output"&gt;
                  &lt;h:outputText value="#{row.label}"&gt;&lt;/h:outputText&gt;
              &lt;/f:facet&gt;
              &lt;f:facet name="input"&gt;
                  &lt;p:inputText value="#{row.label}"&gt;&lt;/p:inputText&gt;
              &lt;/f:facet&gt;
          &lt;/p:cellEditor&gt;
      &lt;/p:column&gt;
      &lt;p:ajax event="cellEdit" process="@this" listener="#{myBean.onEditLabel}" update="isAutomatic"/&gt;
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>Cell edit event listener:</p>
  
  <pre class="lang-java prettyprint-override"><code>public void onEditLabel(CellEditEvent event) {
      Object oldValue = event.getOldValue();
      Object newValue = event.getNewValue();
  
      if(newValue != null &amp;&amp; !newValue.equals(oldValue)) {
          DataTable s = (DataTable) event.getSource();
          MyEntity d = (MyEntity) s.getRowData();
          try {
              d.setAutomatic(false);
              myDAO.save(d);
              addMessage("Change saved!");
          } catch (Exception ex) {
              addErrorMessage("Label could not be saved!");
              getFacesContext().validationFailed();
          }
      }
  }   
  </code></pre>
  
  <p>The cell editor works, sends data to listener, and it is correctly persisted to the database. The 'automatic' flag is also cleared by cell edit event listener, and gets correctly persisted to the database. The problem is that 'automatic' checkbox is not updated on the client. </p>
  
  <p>I also tried </p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;p:ajax event="cellEdit" process="@this" listener="#{myBean.onEditLabel}" update="list"/&gt;
  </code></pre>
  
  <p>which correctly updated the checkbox, but also causes focus to be lost, and wastes bandwidth.</p>
  
  <p>How can I update just a specific cell after cellEdit event is fired?</p>