title: Loop in loop with facelets
body: <p>I'm developing an application using <code>jsf2</code> and <code>facelets</code>. In one of my views I try to display data from a database and I use two nested loops. The second loop uses a var which is an attribute of the var declared for the first loop. </p>
  
  <p>But it's not working.</p>
  
  <p>Here is the relevant part of my code:</p>
  
  <pre><code>&lt;ui:repeat value="#{MyBean.Vect}" var="item"&gt;
       &lt;h:outputText value="${item.attr}" /&gt; &lt;br /&gt;
       &lt;ui:repeat value="#{item.nestedtVect}" var="product" &gt;
           &lt;h:outputText value="${product.name}" /&gt; &lt;br /&gt;
       &lt;/ui:repeat&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>The first loop works but not both.</p>