I am upgrading a project from 2.2.4 to 2.5.6. The binding that worked in 2.2.4 does not work for us in 2.5.6. So I am trying to get the spring binding working in 2.5.6 to see if that will solve our problem.
I have made 2 changes in the 2.5.6 project to try to get this working
Config.groovy:
grails.databinding.useSpringBinder=true
BuildConfig.groovy:
compile 'org.grails:grails-web-databinding-spring:2.5.6'
But after doing this the binding is not working for me. So I have tried with a very simple example, but this also is not working.
package simple
@grails.validation.Validateable
class SimpleCommand {
String name
}
package simple
class SimpleController {
def index(SimpleCommand simple) {
render "Simply " + simple.name
}
}
This works fine when I remove config for using the spring binder, but with it, simple.name is null.
Is there something else I should be doing?
Thanks,
Kenny