title: Visualforce Repeaters
body: <p>Hi I am getting a headache with the visualforce repeater control:</p>
  
  <pre><code> &lt;apex:repeat value="{!productDetails}" var="o"&gt;
       &lt;apex:pageBlockSectionItem &gt;
           &lt;apex:outputText style="label" value="Name:"&gt;&lt;/apex:outputText&gt;
           &lt;apex:outputLabel value="{!o.name}" /&gt; 
       &lt;/apex:pageBlockSectionItem&gt;
  
       &lt;apex:pageBlockSectionItem &gt;
           &lt;apex:outputText value="{!o.ProductCode}"/&gt;   
           &lt;apex:outputText value="{!o.Family}" /&gt;  
       &lt;/apex:pageblockSection&gt; 
  
       &lt;apex:pageBlockSection&gt; 
           &lt;apex:outputText style="label" value="Quantity:"&gt; &lt;/apex:outputText&gt;
           &lt;apex:inputText value="{!theList}"/&gt;
       &lt;/apex:pageblockSection&gt; 
   &lt;/apex:repeat&gt;
  </code></pre>
  
  <p>What I am trying to do, is for each record in the product details list, generate a text box. This text box is bound to another field (theList.quantity). But I am finding that when I change the value in the last text box it sets the quantity in all the text boxes(obviously as they are bound to the same field). </p>
  
  <p>So my question is whats the best way to have each textbox that is generated in the repeater have its own parameter value?</p>
  
  <p>Or am I using the repeater in the wrong way?</p>
  
  <p>EDIT(clarification): </p>
  
  <p>For each product detail record(What I am iterating through) I want to have a textbox where a user can enter the quantity of products. The value of this textbox is unrelated to the product detail records. </p>
  
  <p>My question is how can I generate unique parameters for each iteration of the textbox? Hopefully that makes sense.</p>
  
  <p>Cheers</p>