title: Validation password doesn't work in p:dialog
body: <p>I'm using PrimeFaces 4.0 and I'm trying to use a dialog to change password.
  I used password component to do this job It does n't work in a dialog but It works fine when I'm not using Dialog.</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;p:dialog widgetVar="changePw" resizable="true" appendTo="@(body)"
                modal="true" closable="false" id="changePw"&gt;
  
          &lt;p:panel header="change password"&gt;
  
              &lt;p:messages id="messages" showDetail="true" showSummary="false"
                          autoUpdate="true" /&gt;
              &lt;h:panelGrid columns="2" id="matchGrid"&gt;
                  &lt;h:outputLabel for="pwdNew" value="New: *" /&gt;
                  &lt;p:password id="pwdNew" value="#{passwordBean.newPw}" feedback="true"
                              match="pwdConf" required="true"
                              validatorMessage="Pw does n't matches"
                              requiredMessage="Value required"&gt;
                  &lt;/p:password&gt;
  
                  &lt;p:messages showDetail="true" showSummary="false" autoUpdate="true"
                              for="pwdNew" /&gt;
  
                  &lt;h:outputLabel for="pwdConf" value="Confirm Password: *" /&gt;
                  &lt;p:password id="pwdConf" value="#{passwordBean.newPwConfirmation}"
                              feedback="true" required="true"
                              validatorMessage="invalid password"
                              requiredMessage="Value required"&gt;
                      &lt;f:validateRegex pattern="[A-Za-z0-9]{8,60}" /&gt;
                  &lt;/p:password&gt;
              &lt;/h:panelGrid&gt;
          &lt;/p:panel&gt;
  
          &lt;p:separator&gt;&lt;/p:separator&gt;
          &lt;p:commandButton value="Save" update="matchGrid"
                           process="@this" ajax="true"
                           actionListener="#{passwordBean.changePw}"
                           styleClass="ui-confirmdialog-yes" 
                           oncomplete="changePw.hide();"
                           icon="ui-icon-check" /&gt;
  
          &lt;p:commandButton value="Cancel" process="@this"
                           onclick="changePw.hide();" styleClass="ui-confirmdialog-no"
                           icon="ui-icon-close" /&gt;
      &lt;/p:dialog&gt;
  
      ...
  </code></pre>
  
  <p>Thank for any suggestion !</p>