title: JSF&primefaces after dialog closed background buttons don't work
body: <p>I have a button to open a dialog:</p>
  
  <pre><code>&lt;p:commandButton id="addbutton" value="Новая контрольная точка" oncomplete="dlg_add.show();" rendered="#{controlPointBean.selectedSubject != null}"/&gt;
  </code></pre>
  
  <p>And a dialog with wizard in it:</p>
  
  <pre><code>&lt;p:dialog widgetVar="dlg_add"&gt;
  &lt;p:wizard id="wizard" widgetVar="wizard"&gt;
      &lt;p:tab title="Тип контрольной точки"&gt;
          &lt;p:dataTable id="cptypes" var="cptype" value="#{controlPointBean.cptypesList}" rows="10" rowKey="#{cptype.ID}"
           selection="#{controlPointBean.selectedCPType}" selectionMode="single" filteredValue="#{controlPointBean.filteredCPtypesList}"&gt;  
              &lt;p:column headerText="Тип контрольной точки" filterBy="type" filterMatchMode="contains"&gt;  
                  #{cptype.type}  
              &lt;/p:column&gt; 
          &lt;/p:dataTable&gt;
      &lt;/p:tab&gt;
      &lt;p:tab title="Общее"&gt;
          &lt;h:panelGrid id="data" columns="2"&gt;
              &lt;h:outputText value="Название: " /&gt; 
              &lt;p:inputText value="#{controlPointBean.name}"/&gt;
              &lt;h:outputText value="Модуль: " /&gt; 
              &lt;p:inputText value="#{controlPointBean.module}"/&gt;
              &lt;h:outputText value="Минимальный балл: " /&gt; 
              &lt;p:inputText value="#{controlPointBean.minGrade}"/&gt;
              &lt;h:outputText value="Максимальный балл: " /&gt; 
              &lt;p:inputText value="#{controlPointBean.maxGrade}"/&gt;
          &lt;/h:panelGrid&gt;  
      &lt;/p:tab&gt;
      &lt;p:tab title="Завершить"&gt;
          &lt;p:panel header="Проверьте введённые данные"&gt;              
              &lt;h:panelGrid id="confirmation" columns="2"&gt;
                  &lt;h:outputText value="Предмет:"/&gt;
                  &lt;h:outputText styleClass="outputLabel" value="#{controlPointBean.selectedSubject.name}"/&gt;
                  &lt;h:outputText value="Тип:"/&gt;
                  &lt;h:outputText styleClass="outputLabel" value="#{controlPointBean.selectedCPType.type}"/&gt;
                  &lt;h:outputText value="Название: " /&gt; 
                  &lt;h:outputText styleClass="outputLabel" value="#{controlPointBean.name}"/&gt;
                  &lt;h:outputText value="Модуль: " /&gt; 
                  &lt;h:outputText styleClass="outputLabel" value="#{controlPointBean.module}"/&gt;
                  &lt;h:outputText value="Минимальный балл: " /&gt; 
                  &lt;h:outputText styleClass="outputLabel" value="#{controlPointBean.minGrade}"/&gt;
                  &lt;h:outputText value="Максимальный балл: " /&gt; 
                  &lt;h:outputText styleClass="outputLabel" value="#{controlPointBean.maxGrade}"/&gt;
              &lt;/h:panelGrid&gt;
          &lt;/p:panel&gt;
  
          &lt;p:commandButton value="Принять" update=":form:messages, :form:DataTable" actionListener="#{controlPointBean.save}" oncomplete="dlg_add.hide();wizard.reset();"/&gt;               
      &lt;/p:tab&gt;
  &lt;/p:wizard&gt;
  </code></pre>
  
  <p></p>
  
  <p>When wizard is completed and I click "Принять" button, dialog closes, updates everything, but buttons that was on a background of dialog just don't do anything until the page is reloaded. In primefaces debug console it looks like they are not clicked.
  Here is the method save() from backing bean:</p>
  
  <pre><code>public void save() throws SystemException{
      try{            
          FacesContext facesContext = FacesContext.getCurrentInstance();
          PortletRequest portletRequest = (PortletRequest) facesContext.getExternalContext().getRequest();        
  
          ControlPointLocalServiceUtil.addControlPoint(name, selectedSubject.getID(), selectedCPType.getID(),
                  module, minGrade, maxGrade, 0, PortalUtil.getUserId(portletRequest));
      }
      catch(RowAlreadyExistsException e){
          FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN,
              "Ошибка", e.getLocalizedMessage()));                        
      }
      finally{
          selectedCPType=null;name=null;module=0;minGrade=0;maxGrade=0;
          cpList= ControlPointLocalServiceUtil.findAll();
          filterCPBySelectedSubject();
      }
  }
  </code></pre>