Domanda

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

È stato utile?

Soluzione

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)
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top