title: <h:form> within <ui:repeat> not entirely working, only the last <h:form> is processed
body: <p>I will like to edit a list of items in the same page. Each item should be edited using a separate form. I am creating a h:form within ui:repeat. Only when the last form is submitted, the user input is applied to the managed bean. For all other forms, user input is not applied to the model.</p>
  
  <pre><code>@ManagedBean
  public class Controller {
      Logger logger = Logger.getLogger("TestWeb");
      private List&lt;Customer&gt; customerList;
  
      public List&lt;Customer&gt; getCustomerList() {
          if (customerList == null) {
              customerList = new ArrayList&lt;Customer&gt;();
              customerList.add(new Customer("Daffy Duck", "daffy@example.com"));                          
              customerList.add(new Customer("Bugs Bunny", "bugs@example.com"));       
              customerList.add(new Customer("Samity Sam", "sam@example.com"));
          }
          return customerList;
      }
      public String updateCustomer(Customer c) {
          logger.info("Updating: " + c.getName());
          return null;
      }
  }
  </code></pre>
  
  <p>In the view, I have</p>
  
  <pre><code>&lt;ui:repeat var="c" value="#{controller.customerList}"&gt;
  &lt;h:form&gt;
    &lt;h3&gt;Edit Customer&lt;/h3&gt;
    Name: &lt;h:inputText value="#{c.name}"/&gt;&lt;br/&gt;
    E-mail: &lt;h:inputText value="#{c.email}"/&gt;&lt;br/&gt;
    &lt;h:commandButton value="Update"
      action="#{controller.updateCustomer(c)}"/&gt;
  &lt;/h:form&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>I search for hours without any solution. What will be the correct way to do this? I can hack it by using a single form and using a ui:repeat within it. But there are many issues with that and I will rather not take that route. Thanks.</p>