Does anybody know how to enable myDataBindListener (that implements DataBindListener) in grails app?

有帮助吗?

解决方案

Inside resources.groovy define it as a bean. This will register it with the spring application context and receive events.

beans {
  myDataBindListener(com.whatever.MyDataBindListener)
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top