title: Primefaces Dialog Framework - Not Working
body: <p>Primefaces Dialog Framework v 4 is not working, I have googled to solve the problem as I have added the following code to faces config but all went in vain. Please find the code below:</p>
  
  <p>Index page:</p>
  
  <pre><code>&lt;p:commandButton value="View" icon="ui-icon-extlink" actionListener="#{dialogBean.viewCars}" /&gt; 
  </code></pre>
  
  <p>Bean Code:</p>
  
  <pre><code> public void viewCars() {  
      RequestContext.getCurrentInstance().openDialog("viewCars");  
  } 
  </code></pre>
  
  <p>faces config:</p>
  
  <pre><code>&lt;application&gt;   &lt;action-listener&gt;org.primefaces.application.DialogActionListener&lt;/action-listener&gt;
  &lt;navigation-handler&gt;org.primefaces.application.DialogNavigationHandler&lt;/navigation-handler&gt;
  &lt;view-handler&gt;org.primefaces.application.DialogViewHandler&lt;/view-handler&gt;&lt;/application&gt;
  </code></pre>
  
  <p>TypeError: this.jq.draggable is not a function
  in  /faces/javax.faces.resource/primefaces.js?ln=primefaces&amp;v=4.0
  <img src="https://i.stack.imgur.com/i9zdq.png" alt="enter image description here"></p>
  
  <p>How to solve the issue?</p>