title: Datatable cellEditor functionality in forEach generated Datatable
body: <p>I am trying to generate a editable datatable dynamically dependend on the resultset of an previously executed SQL-Query.
  Depending on which columns would have a constant value I am trying to not render them. That part of the code works just fine, everything is displayed as i would like it to be. 
  My issues are with the cellEditor. I generate my datable as follows:</p>
  
  <pre><code>    &lt;p:dataTable ajax="true" var="mBT" value="#{stammdaten.bbvList}" id="meldeBearbeitungsTable" editable="true" editMode="cell" scrollable="true" scrollHeight="400" style="width:600px"&gt;
      &lt;p:ajax event="cellEdit" listener="#{stammdaten.onCellEdit}" update=":Mb:message"/&gt;
      &lt;c:forEach var="column" items="#{stammdaten.columns}"&gt;
          &lt;p:column headerText="#{column.header}"&gt;
              &lt;f:attribute name="myCol" value="#{column}" /&gt;
              &lt;span&gt;
                  &lt;p:cellEditor&gt;
                      &lt;f:facet name="output"&gt;
                          &lt;h:outputText value="#{mBT[column.property]}"&gt;&lt;/h:outputText&gt;
                      &lt;/f:facet&gt;
                      &lt;f:facet name="input"&gt;
                          &lt;p:inputText value="#{mBT[column.property]}"&gt;
                              &lt;p:keyFilter regEx="/[0-9]/i"/&gt;
                          &lt;/p:inputText&gt;
                      &lt;/f:facet&gt;
                  &lt;/p:cellEditor&gt;
              &lt;/span&gt;
          &lt;/p:column&gt;
        &lt;/c:forEach&gt;
      &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>bbvList is a List of beans with different values. </p>
  
  <p>columns is a List of beans to identify the header-Texts coresponding to the respective variables.</p>
  
  <p>So now the issue itself:
  This is how the cellEditor looks like when i click on it:
  <a href="https://i.stack.imgur.com/AP16D.png" rel="nofollow noreferrer">Issue-Picture</a></p>
  
  <p>So in that example i tried to edit the field with the value "8" in it. onCellEdit gets triggered (a System.out.println is getting printed on the console) but i cant actually change the value in the respective field. </p>
  
  <p>Does have cellEdit issues with the forEach initialisition of the dataTable? If yes is there a way to fix it? Else what am i doing wrong?</p>
  
  <p>Since only a specific component of the html-side of code isnt working as it should be i won't post unnecessary java-Code for now. If needed i will add that as well.</p>
  
  <p>Hope someone can help :)</p>