title: primefaces commandbutton in dialog doesn't work
body: <p>Here's my .xhtml:</p>
  
  <pre><code>    &lt;h:form id="form_edit"  prependId="false"&gt;
          &lt;p:commandButton value="#{filt.add}"
                           ajax="true" 
                           icon="ui-icon-plus"
                           update=":messages :form_edit"
                           oncomplete="confDlg.show()"
                           action="#{agentsbean.clearSelectedAgent()}"/&gt;
      &lt;/h:form&gt;
      &lt;p:dialog id="dialogId" widgetVar="confDlg" showEffect="fold" hideEffect="fade" 
                appendToBody="false"&gt;
          &lt;h:form&gt;
              &lt;p:inputText value="#{agentsbean.selectedAgent.name==null?'null':agentsbean.selectedAgent.name}"/&gt;
              &lt;p:commandButton id="agConfirmSave" value="#{filt.save}" update=":messages @form"
                               actionListener="#{agentsbean.saveAgent}" oncomplete="confDlg.hide();"/&gt;
  
          &lt;/h:form&gt;
      &lt;/p:dialog&gt;
  </code></pre>
  
  <p>actionListener saveAgent :</p>
  
  <pre><code>public void saveAgent(ActionEvent actionEvent) {
      System.out.println("SaveAgent");
  }
  </code></pre>
  
  <p>When i click button (agConfirmSave) - dialog close, but action does not start!</p>
  
  <ul>
  <li>primmefaces 3.5</li>
  <li>Apache 7.0.35</li>
  </ul>
  
  <p><strong>UPD</strong>
  action work, if remove p:inputText or chang it by h:outputText!!! But i need input same text in dialog...</p>