title: How to use <ui:repeat> to iterate over a nested list?
body: <p>Using JSF 2.0, I need to display a table wherein each row contains a link which opens a popup. I have two models: <code>A</code> which has <code>id</code> and <code>List&lt;B&gt;</code> properties and <code>B</code> which has <code>id</code> and <code>name</code> properties. In my backing bean, I have a <code>List&lt;A&gt;</code> property. In my view, I am using <code>&lt;ui:repeat&gt;</code> to iterate over <code>List&lt;A&gt;</code>. </p>
  
  <p>The requirement is, depending on the row that the user clicks, the corresponding <code>List&lt;B&gt;</code> of <code>A</code> needs to be displayed. However, the <code>&lt;ui:repeat&gt;</code> does not accept a nested list to be assigned in the <code>var</code> attribute. Hence, I need to do a lot of workarounds which is not efficient.</p>
  
  <p>How do I efficiently solve this problem?</p>