0

我按照位于http://www.grails.org/plugin/jquery的文档并使用 STS 中包含的 grails 命令行工具将 grails的 jquery 和 jquery-ui 插件安装到 SpringSource Tool Suite (STS-Eclipse) 中Eclipse如下:

grails> install-plugin jquery grails> install-plugin jquery-ui

根据文档,jquery 和 jquery-ui 都应该出现在我的项目 web-app/js 目录中,该目录位于我的 eclipse 工作区下,如下所示:

工作区-sts-2.3.3.M1//web-app/js

相反,这两个项目都安装在 ~/.grails/1.3.3/projects//plugins/ 中,并且永远不会复制到我的 web-app/js 目录中。

不用说我的 GSP 视图找不到 jquery 文件。我可能会手动复制文件;但是,它似乎违反了使用 grails install-plugin jquery 的惯例。

有没有其他人有类似的问题?有我应该设置的配置参数吗?

谢谢,阿什利

4

1 回答 1

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 标记中,例如 .

谢谢阿什利

于 2010-08-20T02:18:20.880 回答