title: generate a list widgets in JSF using "binding"
body: <p>I have a list of objects, "think draggable panels" that need to be rendered on the screen.  Each of these Panels has it's own material it needs to render inside it. My initial thought was to do something like</p>
  
  <pre><code>&lt;ui:repeat value="#{bean.widgets} var="widget"&gt;
      &lt;p:panel binding="#{widget.contents}/&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>Now this doesn't work probably for many reason.  One i know of is that the "var" is only request scope. So, whereas i can access the values of fields within my "widget" java object, I can't directly call a method to bind my panel to.</p>
  
  <p>Could anyone provide direction to take?</p>
  
  <p>Currently running PrimeFaces 3.2 | GlassFish 3.1.2 | Mojarra 2.1.6</p>