def authenticateService is never injected and therfore a useless null object.
I spent some time on google and it turned out that this is an open issue and that others had stumbled about the same problem. I was happy to see that someone had found a workaround:
def authenticateService = org.codehaus.groovy.grails.commons.ApplicationHolder.application.mainContext.getBean("authenticateService")
Using this approach arbitrary services can be injected into the scaffolded controllers.
thank you for this great info ;)
ReplyDelete