jquery remove coming as part of richfaces

落花浮王杯 提交于 2021-01-28 05:08:09

问题


I am using the 3.3.x version of richfaces and that contains the 1.3.2 jquery version. and our system(other resources) found that jquery version 1.3.2 have security vulnerability. I want to remove completly the jquery version and want to use later version 1.6.4 jquery. If it possible than let me know how? and If not than what should I do? NOTE: I can't update the richfaces jar version :(


回答1:


Changing jQuery version was a task when I decided to add PrimeFaces to my Richfaces project. I don't know if it is posible in RF 3.3.X (it's really ancient), but in RF 4.X it's possible and quite simple.

Here are docs 5.4.3. Resource mapping and here is some small working example (not mine!). In static-resource-mappings.properties you can use any jQuery you want:

jquery.js=jquery-alternative-version.js

but you have to make that this version is compatibile with RichFaces.

Let us know if it works also in RF 3.3.X.



来源:https://stackoverflow.com/questions/43446597/jquery-remove-coming-as-part-of-richfaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!