title: How to enforce loading of jQuery in RichFaces?
body: <p>I'm using jQuery on my page. However, I do NOT use RichFaces tags on every page. Subsequently, jQuery is NOT injected by RF in every page. In order to avoid loading an additional jQuery library, how do I properly instruct RichFaces to load its jQuery own library?</p>
  
  <p>This is an issue, because the RF-jQuery library overwrites my custom jQuery that I load. Also, the RF-jQuery libraries are always the last libraries to load, which is not good neither, because I need <code>jquery-ui.js</code> and <code>jquery-migrate-1.2.1.min.js</code> to load AFTER a jQuery library has been loaded.</p>
  
  <pre><code>&lt;head&gt;
      &lt;!-- JS --&gt;
      &lt;span id="out"&gt;
          Richfaces-jQuery enforce with a4j:outputPanel
      &lt;/span&gt;
  
      &lt;script src="/ccms/resources/js/jquery-ui.js"&gt;&lt;/script&gt;
      &lt;script src="/ccms/resources/js/jquery-migrate-1.2.1.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- The CK editor --&gt;
      &lt;script src="/ccms/resources/ckeditor_4_2_custom/ckeditor.js"&gt;&lt;/script&gt;
      &lt;script src="/ccms/resources/js/jquery.capty.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- &amp;lt;ui:debug hotkey=&amp;quot;x&amp;quot; /&amp;gt; --&gt;
      &lt;script type="text/javascript" src="/ccms/javax.faces.resource/jsf.js.jsf?ln=javax.faces&amp;amp;stage=Development"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/ccms/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.3.Final/Packed/jquery.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/ccms/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.3.Final/Packed/packed/packed.js"&gt;&lt;/script&gt;
      &lt;link type="text/css" rel="stylesheet" href="/ccms/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.3.Final/Packed/DEFAULT/packed/packed.css" /&gt;
  &lt;/head&gt;
  </code></pre>