Question

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

Was it helpful?

Solution

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)
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top