title: PrimeFaces command button does not update form on submit
body: <p>This is my Sample backing bean.</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public class Sample {
  
      private String dateText;
  
      public Sample(){
          dateText = (new Date()).toString();
      }
  
      public String updateDate(){
          setDateText((new Date()).toString());
          return null;
     }
  
      public String getDateText() {
          return dateText;
      }
  
      public void setDateText(String dateText) {
         this.dateText = dateText;
     }
  
  }
  </code></pre>
  
  <p><strong>Scenario 01</strong></p>
  
  <pre><code>&lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;h:form&gt;
         &lt;h:inputText id="txtFirst" value="#{sample.dateText}"/&gt;
         &lt;h:inputText id="txtSecond" value="#{sample.dateText}"/&gt;
         &lt;h:commandButton action="#{sample.updateDate}"/&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p><strong>Scenario 02</strong></p>
  
  <pre><code>&lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;h:form&gt;
         &lt;h:inputText id="txtFirst" value="#{sample.dateText}"/&gt;
         &lt;p:inputText id="txtSecond" value="#{sample.dateText}"/&gt;
         &lt;h:commandButton action="#{sample.updateDate}"/&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p><strong>Scenario 03</strong></p>
  
  <pre><code>&lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;h:form&gt;
         &lt;h:inputText id="txtFirst" value="#{sample.dateText}"/&gt;
         &lt;p:inputText id="txtSecond" value="#{sample.dateText}"/&gt;
         &lt;p:commandButton action="#{sample.updateDate}"/&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p><strong>Scenario 04</strong></p>
  
  <pre><code>&lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;h:form&gt;
         &lt;h:inputText id="txtFirst" value="#{sample.dateText}"/&gt;
         &lt;p:inputText id="txtSecond" value="#{sample.dateText}"/&gt;
         &lt;p:commandButton action="#{sample.updateDate}" update="@form"/&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>When I click on the <code>commandButton</code>,</p>
  
  <p><strong>Scenario 01</strong> : Works fine. I can see new date values from both <code>inputText</code> fields without manually refreshing the page.</p>
  
  <p><strong>Scenario 02</strong> : It refreshes the page. Cannot see any ajax behavior. New values are there.</p>
  
  <p><strong>Scenario 03</strong> : Nothing happens. No refreshes. No value changes. To see the values I have to refresh the page manually.</p>
  
  <p><strong>Scenario 04</strong> : Works like <strong>Scenario 01</strong></p>
  
  <p>Please someone give me a little explanation about what is happening here with these components.
  I have used <code>ICEfaces</code>, but I haven't see anything like this. </p>
  
  <p>Thank you!</p>