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 ...
【知识点详解】 1. 词汇理解与应用:题目中的词汇和结构部分主要考察了考生对英语词汇的掌握和使用,例如“providing”(假如)、“hold back”(抑制)、“communicate...with/to”(与...沟通)、“eliminate”...
### 2013 vsfm Towards Linear-time Incremental Structure from Motion #### 摘要与背景 本文讨论了结构从运动(Structure from Motion, SfM)中的增量法,并提出了一个能够实现近似线性时间复杂度的方法。传统上...
《Ergodic Theory with a View Towards Number Theory》是一本面向研究生级别的数学书籍,由Manfred Einsiedler和Thomas Ward共同编写,旨在介绍Ergodic理论及其在数论中的应用。本书作为Springer出版社Graduate ...
Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Books,仅供学习使用
NOX: Towards an Operating System for Networks
文件中提到“Mobileye-Towards Autonomous Driving”,表明Mobileye正致力于推进汽车自动化,迈向完全无人驾驶的新阶段。他们取得了一系列的成就,包括在2017年赢得了30个设计胜利,这代表了与全球27家汽车制造商的...
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
联邦学习是一种分布式机器学习方法,可对大量分散数据进行模型训练。我们已在TensorFlow的基础上为移动设备领域的联合学习构建了可扩展的生产系统。在本文中,我们描述了由此产生的高级设计,概述了一些挑战及其解决...
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,一个端到端生成的文本到...
Eriesson Microwave towards 2020-19_28701-FGB101004_EN_B_PDFV1R1
PocketHub This repository contains ...We are actively working towards a re-release to the Play Store, and this app will be the spiritual successor to the original GitHub app. > What's PocketHub? A name
区块链技术是一种分布式账本技术,它通过智能地融合对等网络(P2P)、密码学、分布式共识协议和智能合约等技术,构建了一个可在不信任的网络节点之间建立信任的环境。随着其不可变性、透明性和共识的特性,区块链技术...
This paper presents a speech recognition system that directly transcribes audio data with text, without requiring an intermediate phonetic representation. The system is based on a combination ...
Current distributed systems, even the ones that work, tend to be very fragile: they are hard to keep up, hard to manage, hard to grow, hard to evolve, and hard to program. In this talk, I look at ...
理解主题在文本数据中的演变是一项重要且具有挑战性的任务。虽然很多工作都致力于话题分析,但是话题演变的研究主要局限于单个话题。在本文中,我们介绍了TextFlow,它是可视化和主题挖掘技术的无缝集成,用于分析多...