title: Is it possible to use p:cellEditor inside a p:columns tag?
body: <p>I have a primefaces dataTable that gets its columns dynamically and I would like its cells to be editable using the primefaces cellEditor as show <a href="http://www.primefaces.org/showcase/ui/datatableCellEditing.jsf" rel="nofollow">here</a>.</p>
  
  <p>I tried doing it </p>
  
  <pre><code>&lt;p:dataTable id="mqTable" value="#{backingBean.columns}"
                  var="cols"&gt;
  &lt;p:columns value="#{cols}" var="col" columnIndexVar="colIndex"
                  style="width: 10px;"&gt;
  
  &lt;h:outputText value="#{cols.get(0).date}" rendered="#{colIndex eq 0}"&gt;
          &lt;f:convertDateTime pattern="#{paramBean.getProperty('format.date','dd/MM/yyyy')}"/&gt;
      &lt;/h:outputText&gt;
  &lt;p:cellEditor&gt;
          &lt;f:facet name="output"&gt;
                  &lt;h:outputText value="#{cols.get(colIndex).value}" /&gt;
          &lt;/f:facet&gt;
          &lt;f:facet name="input"&gt;
              &lt;p:inputText value="#{cols.get(colIndex).value}" style="width: 30px;" /&gt;
          &lt;/f:facet&gt;
  
  &lt;/p:cellEditor&gt;
  
  &lt;/p:columns&gt;
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>but the columns don't show up.</p>
  
  <p>I also want it to start at 1 because I'll be using index 0 for a different purpose</p>