title: Submitted form values not updated in model when adding <f:ajax> to <h:commandButton>
body: <p>I'm learning how to use ajax within jsf, I made a page that does actually nothing, an input text that is filled with a number, submitted to the server, call the setter for that element with the value submitted, and display the getter's value.</p>
  
  <p>Here's the simple bean's code:</p>
  
  <pre><code>@ManagedBean(name="helper",eager=true)
  public class HealthPlanHelper {
  
  
      String random = "1";
  
      public void setRandomize(String s){
          random = s;
                  System.out.println("Calling setter");
      }
  
      public String getRandomize(){
          return random;
      }
  
  }
  </code></pre>
  
  <p>And the jsf page:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"&gt;
  &lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
  
      &lt;h:form&gt;
          &lt;h:commandButton action="nothing"&gt;
              &lt;f:ajax render="num"/&gt;
          &lt;/h:commandButton&gt;
  
          &lt;h:inputText value="#{helper.randomize}" id="num"/&gt;
      &lt;/h:form&gt;
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As you see, this is a request scoped bean, whenever I click the button the server shows that it creates an instance of the bean, but the setter method is never called, thus, the getter return always "1" as the value of the string.</p>
  
  <p>When I remove the  the setter is called normally.</p>