title: PF('').show(); function does not work
body: <p>I am trying to pop up dialog window in Netbeans 8.0.2 Primefaces as shown <a href="http://www.primefaces.org/showcase/ui/overlay/dialog/basic.xhtml" rel="nofollow">http://www.primefaces.org/showcase/ui/overlay/dialog/basic.xhtml</a></p>
  
  <p>I  added primefaces-5.3.jar at my project but when I type PF for example:</p>
  
  <pre><code>&lt;p:commandButton value="Show" onclick="PF('dlg1').show();" type="button" /&gt;               
  
  
  &lt;p:dialog header="Header" widgetVar="dlg1"&gt;
  &lt;h:outputText value="What we do in life, echoes in eternity!" /&gt;
  </code></pre>
  
  <p>  </p>
  
  <p>Nothing happens and it shows me some error saying :The global variable "PF" is not declared.</p>
  
  <p>Please, help me someone.</p>