title: Ajax request not updating the bean
body: <p>I have the following snippet (inside <code>h:body-&gt;h:form</code>, <code>h:head</code> has been used):</p>
  
  <pre><code>&lt;p:dataTable id="items" value="#{faNav.faRequest.items}" var="_item" emptyMessage="#{dict['web.faRequest.noItems']}"&gt;
      &lt;p:column&gt;
          &lt;h:inputText id="newItemName" value="#{_item.name}" rendered="#{_item.name eq null}"/&gt;
      &lt;/p:column&gt;
      &lt;p:column&gt;
  --&gt;         &lt;p:spinner id="newItemQuantity" value="#{_item.quantity}"/&gt;
      &lt;/p:column&gt;
      &lt;p:column&gt;
          &lt;p:commandButton value="Añadir" update="items" actionListener="#{faNav.addItem}" rendered="#{_item.name eq null}"/&gt; 
      &lt;/p:column&gt;
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>And the function in the bean:</p>
  
  <pre><code>public void addItem(ActionEvent actionEvent) {
      System.out.println("Añadiendo");
      this.faRequest.getItems().add(new RequestItem());       
  }
  </code></pre>
  
  <p>Now, with the debugger I check the values inside the function. There, the <code>name</code> property has been updated with the value from the form, but the <code>quantity</code> integer has not. The property is name, because if I set a default non-zero value for quantity, the form shows it correctly.</p>
  
  <p>I am using Primefaces 3.4.2 on JBoss 7.1</p>
  
  <p>What I am missing? Thanks in advance.</p>
  
  <p>UPDATE: Switching from <code>&lt;p:spinner&gt;</code> to <code>&lt;h:inputText&gt;</code> does not help at all.</p>