title: Retriving the row index of edited cell in <p:dataTable> with <p:rowEditor>
body: <p>When using <code>&lt;p:rowEditor&gt;</code>, how can I retrieve the row index of the edited cell?</p>
  
  <p>Here is the relevant code:</p>
  
  <pre><code>&lt;p:dataTable id="datasetParamDt" var="datasetParam" value="#{projectCampaignManagementMB.allParametersList}" editable="true" rowIndexVar="rowIndex"&gt;  
      &lt;p:ajax event="rowEdit"  listener="#{projectCampaignManagementMB.onParameterValueEdit}" update=":campaignForm:growl" /&gt;  
      &lt;p:ajax event="rowEditCancel" listener="#{projectCampaignManagementMB.onParameterValueCancel}" update=":campaignForm:growl"/&gt;  
  
      &lt;p:column headerText="Value"&gt;  
          &lt;p:cellEditor&gt;
              &lt;f:facet name="output"&gt; 
                  &lt;h:outputText value="#{projectCampaignManagementMB.paramValue}" /&gt;
              &lt;/f:facet&gt; 
              &lt;f:facet name="input"&gt; 
                  &lt;p:inputText value="#{projectCampaignManagementMB.paramValue}" /&gt; 
              &lt;/f:facet&gt;     
          &lt;/p:cellEditor&gt;
      &lt;/p:column&gt; 
  
      &lt;p:column headerText="Options" style="width:50px"&gt;  
          &lt;p:rowEditor /&gt;
      &lt;/p:column&gt;  
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>In simple datatables I used to use the <code>&lt;f:param&gt;</code> in a <code>&lt;p:commandLink&gt;</code> as follows:</p>
  
  <pre><code>&lt;f:param name="index" value="#{rowIndex}" /&gt;
  </code></pre>
  
  <p>However, in my case with <code>&lt;p:rowEditor&gt;</code>, how can I get the row index when the user validates the edited value in the <code>onParameterValueEdit()</code> method?</p>
  
  <pre><code>public void onParameterValueEdit(RowEditEvent event) {  
      int index = ... // index of the row to which the edited cell belongs    
      parametersValue.set(Integer.parseInt(index),paramValue);
  }
  </code></pre>