是否有一个配置参数会导致Richfaces 3.3.3在DEV模式下运行(解压js)?
我所追求的是能够让我的应用程序在开发模式下不使用打包的 javascript 库。
我有一些正在运行的代码,并且我在我的应用程序中更改了一些内容,我确信这是问题的根源。但是,我收到的 javascript 错误没有帮助:
Object required framework.pack.js.jsf, line 2797 character 1
当然,转到打包源代码中的该行是没有用的。我意识到即使它没有打包,它对我来说可能仍然没有那么有用,但我希望能够做出这个决定。
What I am after is being able to have my application, in dev mode, NOT use the packed javascript libraries.
I have some code that was working and I've changed some things in my app that I'm sure is the source of the problem. However, the javascript error that I'm getting is not helpful:
Object required framework.pack.js.jsf, line 2797 character 1
Of course going to that line in the packed source is of no use. I realize that even if it wasn't packed it still may not be that useful to me, but I'd like to be able to make that determination.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道我几个月前问过这个问题,但我从未找到答案,最终解决了我试图解决的问题。昨天,我也遇到了同样的事情;我从 RichFaces Tree 脚本的内部收到了一个 Javascript 错误,而打包的库在试图弄清楚发生了什么时没有用......所以我再次开始搜索,这次找到了我的答案。因此,对于任何其他想要了解如何让 RichFaces 中的 JavaScript 不被打包的人,您的 web.xml 中有两个配置设置:
我之前尝试过最后一个参数,但没有运气,但没有意识到“ALL”的 LoadScriptStrategy 会导致 COMPRESS_SCRIPT 参数被忽略。
I know I asked this question several months ago, but I never found the answer to it and eventually got by the issue I was trying to resolve. Yesterday, I had the same type of thing come up; I'm getting a Javascript error from down in the bowels of the RichFaces Tree scripts and the packed library was of no use in trying to figure out what was going on...so I took up the search again and this time found my answer. So, for anyone else who wants to understand how to get the JavaScript in RichFaces to not be packed there are two configuration settings in your web.xml:
I had tried the last parameter before, but had no luck with it, but didn't realize that the LoadScriptStrategy of "ALL" would cause the COMPRESS_SCRIPT parameter to be ignored.