Вопрос

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