title: Entity property not changed when modifying JSF UIComponent
body: <p>I have a <code>&lt;h:dataTable&gt;</code> with columns defined as this</p>
  
  <pre><code>&lt;h:column&gt;
      &lt;f:facet name="header"&gt;
          &lt;h:outputText value="Price"/&gt;
      &lt;/f:facet&gt;
      &lt;h:outputText value="#{p.price}" rendered="#{not p.editable}"&gt;&lt;/h:outputText&gt;
      &lt;h:inputText value="#{p.price}" rendered="#{p.editable}"&gt;&lt;/h:inputText&gt;
  &lt;/h:column&gt;
  </code></pre>
  
  <p>The <code>&lt;h:dataTable&gt;</code> is populated successfully with</p>
  
  <pre><code>&lt;h:dataTable id="userTable" value="#{gnome.productList}" 
               var="p"&gt;
  </code></pre>
  
  <p>The backing bean <code>#gnome</code> is a <code>@ViewScoped</code> bean, and the <code>productList</code> is loaded in a postconstructor and has a normal getter.</p>
  
  <pre><code>@PostConstruct
  public void init() {
      productList = gnomeFacade.findAll();
  }
  
  public List&lt;Gnome&gt; getProductList() {
      return productList;
  }
  </code></pre>
  
  <p>The <code>&lt;h:inputText&gt;</code> is rendered when an <code>&lt;h:commandLink&gt;</code> is pressed, and it allows me to modify the data in the fields. The data is then supposed to be saved using a <code>&lt;h:commandButton&gt;</code> defined outside the <code>&lt;h:dataTable&gt;</code>,</p>
  
  <pre><code>&lt;h:commandButton value="Save changes!" action="#{gnome.saveAction}"/&gt;
  </code></pre>
  
  <p>which invokes this method</p>
  
  <pre><code>public String saveAction() {
      System.out.println("DEBUG: Trying to save edited gnome...");
      for (Gnome g : productList) {
          gnomeFacade.edit(g);
      }
      return null;
  }
  </code></pre>
  
  <p>I have added some debug printouts in the <code>gnomeFacade.edit()</code> method, to be able to view what data is being merged. None of the properties in the <code>productList</code> entities are being saved with their new values. My initial thought was that the <code>&lt;h:dataTable&gt;</code> was reiterating over the values of the <code>productList</code>, but since I have it loaded in a postconstructor, that should not be the issue?</p>
  
  <p>Why aren't the values of the properties changing when I change the values in the <code>&lt;h:inputText&gt;</code>?</p>
  
  <p><strong>Edit:</strong>
  Full .xhtml document:
  <a href="https://pastee.org/75t3e" rel="nofollow">https://pastee.org/75t3e</a></p>