title: How to implement a dynamic list with a JSF 2.0 Composite Component?
body: <p>I asked <a href="https://stackoverflow.com/questions/6355543/pass-argument-to-a-composite-component-action-attribute">this</a> question and although the answer directly satisfied my needs I am left with a feeling that there has to a simpler solution for this specific problem.</p>
  
  <p>I would like to have a composite component that accepts a list of items (The type of the items agreed upon so the members can be used freely within the composite component)</p>
  
  <p>The CC (composite component) display the list of items and allows for addition and subtraction of items.</p>
  
  <p>I would like to do this in the most simple and efficient manner.</p>
  
  <p>To illustrate the problem, an example:</p>
  
  <p><img src="https://i.stack.imgur.com/0rOdy.png" alt="enter image description here"></p>
  
  <p>The definition should be rather simple (unless of course, its not :-) ):</p>
  
  <pre><code>&lt;special:dynamicFieldList value="#{bean.fieldList} /&gt;
  </code></pre>
  
  <p>The most abstract form of a <code>Field</code> object would be:</p>
  
  <pre><code>public class Field{
   String uuid;
   String value;
  }
  </code></pre>
  
  <p>I guess that's it. 
  How would you implement this in a simple manner?</p>
  
  <p>Thanks!</p>