我檢出了Grails: How to combine domain objects' errors with command objects' errors?,但由於某些原因,解決方案對我而言不起作用。這可能只適用於Grails 1.3.7而不適用於Grails 2.2.1。 我有一個包含InnerObjectCommand列表的命令對象OuterObjectCommand。我在控制器中手動填充它
我很抱歉如果我在這裏丟失了一些非常明顯的東西,但我一直在用這個問題拉我的頭髮。 我有一個命令對象: class MyCommand {
Long id
String value
}
我綁定到這個在我的控制器: public update(MyCommand myCmd) {
}
一切都是在這種情況下罰款。現在我想要添加的版本場,這是在請求參數傳遞給命令對象: c