title: primefaces dialog using dialog framework not popping up
body: <p>I'm trying to use primefaces dialog framework to simplify my code. I've followed the example in the primefaces 4.0 user guide and it's not working.</p>
  
  <p>I copied the example pretty much verbatim creating three files: a file with the dialog in it, a file that calls the dialog and a backing bean file.</p>
  
  <p>The dialog file is named "dialog.xhtml", is in the "/Test" folder and contains:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" 
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"&gt;
      &lt;h:head&gt;
          &lt;title&gt;Cars&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          Test dialog
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The base file is named "testDialog.xhtml", is in the "/Test" folder and contains:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"      
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"&gt;
  
      &lt;h:head&gt;
          &lt;title&gt;Test Dialog&lt;/title&gt;
          &lt;meta name="viewport" content="width=device-width"/&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;h:form&gt;
          &lt;p:commandButton value="View Cars" actionListener="#{hostBean.view}" /&gt;
          &lt;/h:form&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Finally, the backing bean contains:</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public class HostBean implements Serializable {
  
      public void view() {
          RequestContext.getCurrentInstance().openDialog("/Test/dialog");
      }
  }
  </code></pre>
  
  <p>When I debug it, view gets called but the dialog is not opened. (I have added the three lines to faces-context.) </p>
  
  <p>Any ideas?</p>