سؤال

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