title: Bound values are not getting updated from editable datatable without setting ID in JDK1.5
body: <p>Bound values are not getting updated from editable data table without setting ID in JDK 1.5. But the same does work without setting ID in JDK 1.6.
  Does anyone know why? Thanks</p>
  
  <p>Code, Bean part</p>
  
  <pre><code>    public void setDataTable(HtmlDataTable dataTable) {
      this.dataTable = dataTable;
  }
  
  public HtmlDataTable getDataTable() {
      if (dataTable == null)
          setEditableDataTable();
      return dataTable;
  }
  
  private void setEditableDataTable() {
  
      dataTable = new HtmlDataTable();
      dataTable.setValueBinding("value",
              createValuebinding("#{testBean.stringList}"));
      dataTable.setVar("items");
      for (int i = 0; i &lt; getDatastable().get(i).size(); i++) {
  
          UIColumn column = new UIColumn();
          dataTable.getChildren().add(column);
  
          HtmlOutputText header = new HtmlOutputText();
          header.setValue("Header "+i);
          column.setHeader(header);
  
          HtmlInputText input = new HtmlInputText();
          input.setValueBinding("value", createValuebinding("#{items[" + i
                  + "]}"));
          column.getChildren().add(input);
  
      }
  
  }
  
  private ValueBinding createValuebinding(String valueExpression) {
      return FacesContext.getCurrentInstance().getApplication()
              .createValueBinding(valueExpression);
  }
  </code></pre>
  
  <p>JSP part</p>
  
  <pre><code>   &lt;h:dataTable binding="#{testBean.dataTable}" &gt;
                  &lt;/h:dataTable&gt;
  </code></pre>
  
  <h3>Solution</h3>
  
  <pre><code>   Give id for the datatable
  </code></pre>