title: c:forEach inside primefaces(e.g. p:panelgrid) inside ui:repeat
body: <p>I have to dinamically produce a list of tables. Each of these have a variable number of columns (with fixed rows).</p>
  
  <p>To perform this I first put a <code>&lt;p:panelGrid&gt;</code> inside an <code>&lt;ui:repeat&gt;</code>: so I correctly produced a list of tables.</p>
  
  <p>Then, to dinamically produce the columns, I tried put both an  <code>&lt;ui:repeat&gt;</code> or a  <code>&lt;c:forEach&gt;</code> inside the <code>&lt;p:panelGrid&gt;</code>. In the result I obtain no rows.</p>
  
  <p>I written a  minimal example here. In the bean <code>testBackingBean</code>, I have defined (and initialized) the variable <code>ArrayList&lt;ArrayList&lt;String&gt;&gt; tables</code>. This is the xhtml that does not produce the expected results:</p>
  
  <pre><code>&lt;ui:repeat var="table" value="#{testBackingBean.tables}"&gt;
      &lt;p:panelGrid&gt;
          &lt;f:facet name="header"&gt;
              &lt;p:row&gt;
                  &lt;p:column &gt;header of #{table}&lt;/p:column&gt;
              &lt;/p:row&gt;
          &lt;/f:facet&gt;
          &lt;p:row&gt;
              &lt;c:forEach var="row" items="${table}"&gt;
                  &lt;p:column&gt;#{row}&lt;/p:column&gt;
              &lt;/c:forEach&gt;
          &lt;/p:row&gt;
      &lt;/p:panelGrid&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>Noteworthy the header-row correctly converts <code>#{table}</code> into string. The problem is that I see no rows of data.</p>
  
  <p>Also, if I use the <code>&lt;table&gt;</code> instead of the <code>&lt;p:panelGrid&gt;</code> everything work as excpected.</p>
  
  <p>Also, I tried different permutations of <code>&lt;c:forEach&gt;</code> and <code>&lt;ui:repeat&gt;</code> with no succes.</p>
  
  <p>So, how can I dinamically produce more tables (using prime-faces) and set a dinamical number of columns?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: I would like to use two <code>&lt;c:forEach&gt;</code>, but even with one only <code>&lt;c:forEach&gt;</code> I get an empty result. In fact if I try the following xhtml:</p>
  
  <pre><code>&lt;c:forEach  items="${testBackingBean.tables}" var="tabella"&gt;
      current element: #{tabella}
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>then I get an empty result. (I know,this is a different question)</p>