jquery 和 jquery-ui 在 Springsource Tool Suite 2.3.3.M1 中不起作用
我按照位于 http://www.grails.org/plugin/jquery 并使用 STS-Eclipse 附带的 grails 命令行工具,如下所示:
grails>安装插件 jquery 圣杯> install-plugin jquery-ui
根据文档,jquery 和 jquery-ui 都应该出现在我的项目 web-app/js 目录中,该目录位于我的 eclipse 工作区下,如下所示:
workspace-sts-2.3.3.M1//web -app/js
相反,这两个项目都安装在 ~/.grails/1.3.3/projects//plugins/ 中,并且永远不会复制到我的 web-app/js 目录中。
不用说我的 GSP 视图找不到 jquery 文件。我可能会手动复制文件;但是,它似乎违反了使用 grails install-plugin jquery 的约定。
还有其他人遇到过类似的问题吗?是否有我应该设置的配置参数?
谢谢, 阿什利
I installed the jquery and jquery-ui plugins for grails into SpringSource Tool Suite (STS-Eclipse) following the documentation located at http://www.grails.org/plugin/jquery and using the grails command-line tool included with STS-Eclipse as follows:
grails> install-plugin jquery
grails> install-plugin jquery-ui
According to the documentation, both jquery and jquery-ui should appear in my projects web-app/js directory which is located under my eclipse workspace as follows:
workspace-sts-2.3.3.M1//web-app/js
Instead, both items are installed in ~/.grails/1.3.3/projects//plugins/ and are never copied to my web-app/js directory.
Needless to say my GSP views can't find the jquery files. I will likely copy the files manually; however, it seems to go against the convention of using grails install-plugin jquery.
Has anyone else had a similar problem? Is there a configuration parameter I should set?
Thx,
Ashley
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 http://grails.1312388.n4.nabble.com/Problem-with-Grails-1-3-2-Jquery-1-4-2-2 -and-g-javascript-tag-td2271796.html。
我必须将 plugin="jquery" 添加到我的 g:javascript 标记中,例如 .
谢谢
阿什利
I found the answer at http://grails.1312388.n4.nabble.com/Problem-with-Grails-1-3-2-Jquery-1-4-2-2-and-g-javascript-tag-td2271796.html.
I have to add plugin="jquery" to my g:javascript tag like .
Thanks
Ashley