title: Primefaces confirm dialog retains its background opacity after it is dismissed
body: <p>Someone who have used Primefaces 4.0-SNAPSHOT may have noticed the following warning.</p>
  
  <blockquote>
    <p>The appendToBody attribute of the ConfirmDialog will be deprecated in
    future versions. Please use appendTo="@(body)" now</p>
  </blockquote>
  
  <p>Along with Primefaces 4.0 RC1, I have this piece of code.</p>
  
  <pre><code>&lt;h:body&gt;
      &lt;h:form prependId="true" id="form"&gt;
  
          &lt;p:confirmDialog id="confirmDialog" 
                           widgetVar="confirmDeleteMultiple" 
                           message="Message" 
                           showEffect="true" 
                           hideEffect="true" 
                           header="Header" 
                           severity="alert" 
                           closeOnEscape="true" 
                           appendTo="@(body)"        &lt;-----------------
                           closable="true"&gt;
  
              &lt;p:commandButton id="btnYes" 
                               value="Yes" 
                               process="@this" 
                               oncomplete="confirmDeleteMultiple.hide()"/&gt;
  
              &lt;p:commandButton id="btnNo" 
                               value="No" 
                               onclick="confirmDeleteMultiple.hide()" 
                               type="button" /&gt;
          &lt;/p:confirmDialog&gt;
  
          &lt;p:commandButton oncomplete="confirmDeleteMultiple.show()" 
                           update=":form:confirmDialog" 
                           actionListener="#{testManagedBean.insert}"
                           ajax="true" type="submit" value="Submit"/&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>When the only command button on the page is clicked, the dialog appears with the two buttons given.</p>
  
  <p>On pressing any of these buttons, the dialog disappears but leaving the background opacity. The background opacity loses only when the page is reloaded.</p>
  
  <p>Why does this happen with this new version? Any suggestion? In earlier versions, this was just fine.</p>