title: Primefaces dialog framework doesn't show up
body: <p>Yet another post on <strong>primefaces</strong> dialog framework.</p>
  
  <p>I've been watching all of these previous posts:</p>
  
  <p><a href="https://stackoverflow.com/questions/21328768/primefaces-dialog-framework-not-working">Primefaces Dialog Framework - Not Working</a></p>
  
  <p><a href="https://stackoverflow.com/questions/21532034/primefaces-dialog-using-dialog-framework-not-popping-up">primefaces dialog using dialog framework not popping up</a></p>
  
  <p><a href="https://stackoverflow.com/questions/22679006/primefaces-dialog-framework-not-working-while-using-ajax-listener">Primefaces dialog framework not working while using ajax listener</a></p>
  
  <p>I've been trying all of these but still the dialog just doesn't show up.\</p>
  
  <p>I'm using <code>primefaces 5.1</code>.    </p>
  
  <p>Let me add some details.</p>
  
  <p>Page with a button that should call the dialog:</p>
  
  <pre class="lang-xhtml prettyprint-override"><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui" &gt;
  
    &lt;h:form&gt;
        &lt;p:commandButton 
           value="prova popup" 
           actionListener="#{codTribEr.chooseCodiceErario('/popup/codice-erario.xhtml')}"&gt;
        &lt;/p:commandButton&gt;
    &lt;/h:form&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre class="lang-java prettyprint-override"><code>package it.iwb.ubiss.poc.popup;
  
  import java.io.Serializable;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.ViewScoped;
  import org.primefaces.context.RequestContext;
  
  @ManagedBean(name="codTribEr")
  @ViewScoped
  public class CodiceTributoErario implements Serializable{
  
      private static final long serialVersionUID = 1L;
  
      public void chooseCodiceErario(String s) {
              RequestContext.getCurrentInstance().openDialog(s);
      }
  }
  </code></pre>