title: How to get dynamically rendered <h:inputText> value in back end in JSF
body: <p>I am able to render dynamic  but don't know how to get those dynamically created values in back end.</p>
  
  <p><strong>test.xhtml</strong></p>
  
  <pre><code>&lt;h:form&gt;
          Insert Your Desire Number : &lt;h:inputText value="#{bean.number}"&gt;
          &lt;f:ajax listener="#{bean.submitAjax}" execute="@form" render="@form" event="keyup" /&gt;
          &lt;/h:inputText&gt;
          &lt;br&gt;&lt;/br&gt;
          &lt;h:outputText value="#{bean.text}" /&gt;
          &lt;h:dataTable value="#{bean.items}" var="item"&gt;
              &lt;h:column&gt;
                  &lt;h:inputText value="#{item.value}" /&gt;
              &lt;/h:column&gt;
          &lt;/h:dataTable&gt;
          &lt;h:commandButton value="Submit" action="#{item.submit}" /&gt;
  
      &lt;/h:form&gt;
  </code></pre>
  
  <p>If I render 3 input boxes, and when I submit the button i get the last value only, Can someone guide me how can i </p>
  
  <p><strong>Bean.java</strong></p>
  
  <pre><code>@ManagedBean(name="bean")
  @SessionScoped
  public class Bean {
  private int number;
  private List&lt;Item&gt; items;
  private Item item;
  //getter and setter are omitted
  public void submitAjax(AjaxBehaviorEvent event)
  {
      items = new ArrayList&lt;Item&gt;();
      for (int i = 0; i &lt; number; i++) {
          items.add(new Item());
      }
  }
  }
  </code></pre>
  
  <p><strong>Item.java</strong></p>
  
  <pre><code>private String value;
  //getter and setter are omitted
  public void submit() {
          System.out.println("Form Value : "+value);
  </code></pre>
  
  <p>}</p>