title: How to include jQuery library for JSF with Primefaces UI?
body: <p>I need to use jQuery and jQuery UI in JSF template pages, however, Primefaces have its own jQuery which is loaded on demand. I.e., Primefaces won't load jQuery if there is no <code>&lt;p:xxx&gt;</code> tag in the page.</p>
  
  <p>I can have a dummy form to include all the required libraries like following:</p>
  
  <pre><code>    &lt;h:form id="dummy" style="display: none;"&gt;
          A Dummy Form.
          &lt;p:dataTable /&gt;
          &lt;p:column /&gt;
          &lt;p:commandLink /&gt;
          &lt;p:commandButton /&gt;
          &lt;p:dialog /&gt;
          &lt;p:fileUpload /&gt;
          &lt;p:tabView rendered="false"&gt;
              &lt;p:tab title="" /&gt;
          &lt;/p:tabView&gt;
          &lt;p:message for="dummy" /&gt;
          &lt;f:ajax event="click" /&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>though it works, but is there any better solution?</p>