Grails WebFlow和命令对象:只允许一个命令对象?

时间:2012-07-16 13:52:06

标签: grails spring-webflow command-objects

Grails 1..3.7

在常规控制器操作中,我可以执行以下操作:

def someAction = { OneCommand oneCmd, TwoCommand twoCmd ->

}

但是,在webflow操作中,我有等效的内容:

def someFlow = {
  someAction { 
    on("something") { OneCommand oneCmd, TwoCommand twoCmd ->
    }
  }
}

不会将params绑定到任何一个对象。如果我删除其中一个,它会绑定到左边的一个。这是一个错误还是预期的行为?

0 个答案:

没有答案
相关问题