jquery remove 作为richfaces的一部分 [英] jquery remove coming as part of richfaces

查看:82
本文介绍了jquery remove 作为richfaces的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Richfaces 的 3.3.x 版本,其中包含 1.3.2 jquery 版本.我们的系统(其他资源)发现 jquery 1.3.2 版本存在安全漏洞.我想完全删除 jquery 版本并希望使用更高版本的 1.6.4 jquery.如果可能的话,让我知道如何?如果不是,我该怎么办?注意:我无法更新richfaces jar 版本:(

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 :(

推荐答案

当我决定将 PrimeFaces 添加到 Richfaces 项目时,更改 jQuery 版本是一项任务.我不知道它在 RF 3.3.X 中是否可行(它真的很古老),但在 RF 4.X 中它是可能的并且非常简单.

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.

这里是文档 5.4.3.资源映射,这里有一些小的示例(不是我的!).在 static-resource-mappings.properties 中,你可以使用任何你想要的 jQuery:

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

但您必须确保此版本与 RichFaces 兼容.

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

让我们知道它是否也适用于 RF 3.3.X.

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

这篇关于jquery remove 作为richfaces的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆