This article just a solution of conflict of jquery, not others, eg. skin issue and so on.
An article written by jboss richfaces developer illustrates richfaces resource mapping feature detailedly, before resolve the jQuery compaibility issue, you'd better read it.
Re-routing JSF resource requests with RichFaces Resource Mapping
In implentment jar of richfaces 4.3.4-Final(richfaces-components-ui-4.3.4.Final.jar/META-INF/resources/org.richfaces.staticResource/4.3.4.Final/Static/jquery.js) and Primefaces 4.0, you'll find that primefaces provided a jquery.js file, the file contains jquery 1.10.2 and some jquery ui script, meanwhile, richfacces provided a clean jquery file, but its version is 1.8.3. so two jquery files with different version conflicts each other.
After you read the article above, you've known, richfaces can re-routing resource with a little configuration, and a resource servlet to finish the work, and fortunately primefaces has no such resource resolver(after v2.x), I really love this non-invasive characteristic, so apparently, we must let richfaces use jquery file of primefaces, because the file contains jquery ui script, primefaces can't working without these ui script, let's start to config it.
Firstly, creat a directory/package named "META-INF" under your java source root directory, and create a directory named "richfaces" under "META-INF" directory, and then create a property file named "static-resource-mappings.properties" under "richfaces", typed following lines in it.
jquery.js=org.richfaces.staticResource/jquery.js
primefaces\:jquery/jquery.js=org.richfaces.staticResource/jquery.js
Secondly, create a directory in your webroot named "resources" and create a directory named "org.richfaces.staticResource" under it.
Finally, copy jquery.js from primefaces jar file and put in directory named "org.richfaces.staticResource",
So your packaged directory structure should like following:
摘录
相关推荐
Visible light communication (VLC) is a promising solution to the increasing demands for wireless connectivity. Gallium nitride micro-sized light emitting diodes (micro-LEDs) are strong candidates for ...
2013 vsfm Towards Linear-time Incremental Structure from Motion
2011年4月高等教育自学考试英语全国统一命题试题及答案加翻译.pdf
Towards A Novel Architecture for Enabling Interoperability Amongst Multiple Blockchains论文笔记
Mobileye-Towards Autonomous Driving
论文:Faster R-CNN Towards Real-Time Object Detection With Region Proposal Networks
Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Books,仅供学习使用
Towards Playing Full MOBA Games withDeep Reinforcement Learning.pdf
Automotive+revolution+perspective+towards+2030.pdf
NOX: Towards an Operating System for Networks
FuTURE论坛_WIRELESS TECHNOLOGY TRENDS TOWARDS 6G.pdf
FAO的土地评价纲要,2007更新 FAO.Land Evaluation Towards a Revised Framework
Springer Tracts in Advanced Robotics Volume 76 - Towards Service Robots for Everyday Environments Recent Advances in Designing Service Robots for Complex Tasks in Everyday Environments
virtio: Towards a De-Facto Standard For Virtual I/O Devices
A very good graduate student math book on ergodic theory
Softimage Towards a New Theory of the Digital Image 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络...
Wheeled Mobile Robotics: From Fundamentals Towards Autonomous Systemscovers the main topics from the wide area of mobile robotics, explaining all applied theory and application. The book gives the ...
文本到语音合成系统通常由多个阶段组成,例如文本分析前端、声学模型和音频合成模块。构建这些组件通常需要广泛的领域专业知识,并且可能包含脆弱的设计选择。在本文中,我们提出了Tacotron,一个端到端生成的文本到...
TOWARDS THE HARMONIZATION OF SAFETY ASSESSMENT METHODS OF AUTOMATED DRIVING SAKURA – SIP-adus - HEADSTART EU-Japan Joint White Paper on Harmonization of Safety Assessment Methods of Automated ...
Eriesson Microwave towards 2020-19_28701-FGB101004_EN_B_PDFV1R1