问题
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