title: Validation errors in dialog not updating after failed submit in JSF
body: <p>So I click a button which opens a dialog. Inside this dialog I want to fill out information in a form and submit and save it. Some of the inputTexts need to be required in order to submit. So I use the required="true" attribute. It stops the submission, but it does not update the field with a red outline of everything. Now, if I hit cancel and open up the dialog again it will show the fields that failed validation with a red outline! </p>
  
  <p>I thought I could solve this by manually updating the dialog whenever I try to submit the form. This just causes the dialog to close though instead of staying open and refreshing the dialog to show the validation failures.</p>
  
  <p>This is the dialog, when I hit the save button is when I submit the form</p>
  
  <pre><code>&lt;h:form&gt;
  
      &lt;p:dialog header="#{headerValue}" widgetVar="#{uniqueId}_editDialog"
          modal="false" showEffect="fade" styleClass="dialogGrid"
          dynamic="true" draggable="true" resizable="false"&gt;
          &lt;p:outputPanel style="text-align:center;" layout="block"&gt;
           &lt;p:messages autoUpdate="true"/&gt;
              &lt;ui:insert name="editContent"&gt;
        Edit Content Here. Use 'selectedModel.whatever'
      &lt;/ui:insert&gt;
              &lt;p:panelGrid columns="3" styleClass="buttonGrid"&gt;
                  &lt;ui:insert name="saveButton"&gt;
                      &lt;p:commandButton iconPos="left" value="#{msg.save}"
                          rendered="#{'VIEW' != selectedModel.viewState}"
                          process="@widgetVar(#{uniqueId}_editDialog)"
                          action="#{adapterInjector.add(modelList, selectedModel)}"
                          update="@widgetVar(#{uniqueId}_itemsDataList) @widgetVar(#{uniqueId}_addButton) @widgetVar(#{uniqueId}_editDialog)"
                          oncomplete="if(!args.validationFailed) PF('#{uniqueId}_editDialog').hide()"
                          partialSubmit="true" validateClient="true"&gt;
                      &lt;/p:commandButton&gt;
                  &lt;/ui:insert&gt;
  
                  &lt;p:commandButton iconPos="right" value="#{msg.cancel}"
                      process="@this" oncomplete="PF('#{uniqueId}_editDialog').hide()"
                      resetValues="true" partialSubmit="true"&gt;
                  &lt;/p:commandButton&gt;
              &lt;/p:panelGrid&gt;
          &lt;/p:outputPanel&gt;
      &lt;/p:dialog&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>This is an inserted component which has the required attribute</p>
  
  <pre><code>    &lt;p:selectOneMenu id="licenseCert"
                      value="#{selectedModel.selectedLicenseCert}" filter="true"
                      required="true"&gt;
                      &lt;f:selectItem itemLabel="#{msg.selectOne}" itemValue=""
                          noSelectionOption="true" /&gt;
                      &lt;f:selectItems value="#{licCert.allLicenseCertMap.entrySet()}"
                          var="entry" itemValue="#{entry.key}" itemLabel="#{entry.value}" /&gt;
                  &lt;/p:selectOneMenu&gt;
              &lt;/p:column&gt;
  </code></pre>