title: Using ui:repeat to output a ResultSet
body: <p>The documentation for the ui:repeat tag in JSF 2.0 says you can iterate over a ResultSet but my code:</p>
  
  <pre><code>&lt;ui:repeat value="#{bean.resultSet}" var="row" varStatus="status"&gt;
     #{row.string("mySQLColumn")}
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>produces this error:</p>
  
  <pre><code>javax.faces.FacesException: Iteration start index is greater than the number of available rows.
      at com.sun.faces.facelets.component.UIRepeat.validateIterationControlValues(UIRepeat.java:682)
      at com.sun.faces.facelets.component.UIRepeat.process(UIRepeat.java:505)
      at com.sun.faces.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:974)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
  </code></pre>