我一直在嘗試實現一個自定義dojo構建來替換spring roo 1.1.5自帶的dojo版本。Spring Roo,自定義Dojo構建
我按照說明在
http://sagittech.blogspot.com/2011/08/asdadsad-qwasdace-aavvrv-place-holder.html
以及
http://www.qc4blog.com/?p=1001
我已經能夠創建構建。
我的問題是,當我將新建成項目像
WEB-INF \類\ META-INF \ WEB-資源\道場-1.6.2 \
(FYI:我改名從1.6.1版本1.6.2,以避免與同一版本衝突中 袋鼠。)
當我打開我的網頁,我得到
語法錯誤 http://localhost:8080/app-1.0.0/resources/dojo-1.6.2/dojo/dojo.js 線14
也
丟失)後的參數列表 http://localhost:8080/app-1.0.0/ 3號線
道場沒有定義 http://localhost:8080/app-1.0.0/resources/spring/Spring-Dojo.js 16號線
所以,問題是:
什麼是正確的如何將新的自定義dojo構建與Spring Roo集成?
有沒有一種特殊的方法來建立道場,使之發生?
是否需要額外的步驟才能使用Roo進行自定義構建工作?
更新:
下面是我的配置文件來創建新的dojo.js
dependencies = {
optimize:"shrinksafe",
stripConsole: "normal",
cssOptimize: "comments",
layers:
[
{
name: "dojo.js",
layerDependencies:
[
"dojo.js",
],
dependencies:
[
"dijit.Dialog",
"dijit.Tooltip",
"dijit.form.DateTextBox",
"dijit.form.CheckBox",
"dijit.form.CurrencyTextBox",
"dojox.widget.Standby",
"dijit.form.ComboBox",
"dijit.form.FilteringSelect",
"dojox.form.PasswordValidator",
"dojo.parser",
"dijit.form.Form",
"dojox.grid.EnhancedGrid",
"dojo.data.ItemFileWriteStore",
"dijit.TitlePane",
"dijit.layout.LayoutContainer",
"dijit.layout.BorderContainer",
"dijit.form.SimpleTextarea",
"dijit.form.Textarea",
"dojo.date.locale",
"dojo.data.ItemFileReadStore",
"dojox.grid.cells.dijit",
"dojox.grid.DataGrid",
"dijit.form.Button",
"dijit.form.ValidationTextBox",
"dijit.Dialog",
"dijit.form.NumberSpinner",
"dojox.grid.enhanced.plugins.Menu",
"dojox.grid.enhanced.plugins.NestedSorting",
"dojox.grid.enhanced.plugins.IndirectSelection",
"dijit.MenuItem",
"dijit.MenuSeparator",
"dijit.PopupMenuItem",
"dijit.Menu",
"dojox.form.Uploader",
"dojox.form.uploader.FileList",
"dojox.form.uploader.plugins.Flash",
"dijit.form.Select"
]
}
],
prefixes: [
["dijit", "../dijit"],
["dojox", "../dojox"]
]
}
確保在那之後我做了新的優化文件一樣的dojo.js以確保道場發現我現在收到以下錯誤:
未能加載/app-1.0.0/resources/dojo-1.6.2/dojo/./parser。語法錯誤::有錯誤的js語法錯誤 http://localhost:8080/app-1.0.0/resources/dojo-1.6.2/dojo/dojo.js 線14
使用像JSLint的工具,請確認您的JavaScript。它可能也有幫助。 – bhagyas 2012-02-27 16:14:02