title: How to use ui:repeat in datatable to append columns?
body: <p>I want to generate a list of tables. 1 table for each month. With 1 column for each day of the month. Here is the JSF piece I am using.</p>
  
  <pre><code>&lt;ui:repeat value="#{worklogService.months}" var="monthnum"&gt;
      &lt;p:dataTable value="#{worklogService.getTableForMonth(monthnum)}" var="tabrow"&gt;
          &lt;p:column headerText="Name"&gt;
              &lt;h:outputLabel value="#{tabrow.get(0)}"&gt;&lt;/h:outputLabel&gt;
          &lt;/p:column&gt;
          &lt;ui:repeat value="#{worklogService.getDaysOfMonth(monthnum)}" var="daynum"&gt;
              &lt;p:column headerText="#{daynum}"&gt;
                  &lt;h:outputText value="#{tabrow.get(daynum)}"&gt;&lt;/h:outputText&gt;
              &lt;/p:column&gt; 
          &lt;/ui:repeat&gt;
      &lt;/p:dataTable&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p><code>#{worklogService.months}</code> returns <code>List&lt;Integer&gt;</code>. One number per Month.
  <code>#{worklogService.getTableForMonth(monthnum)}</code> returns <code>List&lt;List&lt;String&gt;&gt;</code>.</p>
  
  <p>The first column for each table is the same. I want to generate all other columns depending on the month. The result is 12 Tables with only 1 column (the first). What could be the problem here? And how to solve it?</p>