I am using jQuery on my page. However, I do NOT use RichFaces tags on every page. Subsequently, jQuery does NOT introduce RF on every page. To avoid loading an additional jQuery library, how can I properly instruct RichFaces to load my own jQuery library?
This is a problem because the RF-jQuery library overwrites my custom jQuery, which I am loading. In addition, RF-jQuery libraries are always the latest downloadable libraries, which is also bad because I need jquery-ui.js
and jquery-migrate-1.2.1.min.js
load AFTER the jQuery library is loaded.
<head> <span id="out"> Richfaces-jQuery enforce with a4j:outputPanel </span> <script src="/ccms/resources/js/jquery-ui.js"></script> <script src="/ccms/resources/js/jquery-migrate-1.2.1.min.js"></script> <script src="/ccms/resources/ckeditor_4_2_custom/ckeditor.js"></script> <script src="/ccms/resources/js/jquery.capty.min.js"></script> <script type="text/javascript" src="/ccms/javax.faces.resource/jsf.js.jsf?ln=javax.faces&stage=Development"></script> <script type="text/javascript" src="/ccms/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.3.Final/Packed/jquery.js"></script> <script type="text/javascript" src="/ccms/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.3.Final/Packed/packed/packed.js"></script> <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" /> </head>
source share