title: Primefaces how to update specific cell in dataTable in celleditor on dropdown value change?
body: <p>I have a datatable that uses the cell editor function. In each row, I have a dropdown and what I want is when a user chooses a different value in that dropdown, I want another cell in the current row to be updated.</p>
  
  <p>Here's my column:</p>
  
  <pre><code>&lt;p:column headerText="Period"&gt;
      &lt;p:cellEditor&gt;
          &lt;f:facet name="input"&gt;
              &lt;p:selectOneMenu value="#{pj_details.periodDates}" id="period" size="1" styleClass="listBoxMedium"&gt;
                  &lt;p:ajax update="tabs:editProjects:projects" event="change" listener="#{ppBacker.populateProjectDates}" /&gt;
                  &lt;f:attribute name="period_key" value="#{pj_details.periodDates}" /&gt;
                  &lt;f:selectItems value="#{ppBacker.periods}" /&gt;
              &lt;/p:selectOneMenu&gt;  
           &lt;/f:facet&gt;
           &lt;f:facet name="output"&gt;
                  &lt;h:outputText value="#{pj_details.periodDates}" /&gt;
           &lt;/f:facet&gt;
      &lt;/p:cellEditor&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p>My update works except it updates the enter form which throws the table out of celleditor mode.</p>
  
  <p>Using firebug, I can see that the update I need looks like this:</p>
  
  <pre><code>tabs:editProjects:projects:1:projStartDate_input
  </code></pre>
  
  <p>Only problem with that is the number 1 in this example refers to the row.</p>
  
  <p>So how can i udpate a cell in the same row as the dropdown without being thrown out of celleditor mode?</p>