Currently we are upgrading Grails version from 1.3.3 to 2.2.4. While doing so, we encountered a Boolean binding problem for a check-box value.
Here is the code...
Domoan:
A {
:
:
Boolean check
}
View:
:
:
<g:checkbox name = "check" value = &{A?.Check}/>
Controller:
def Save {
def aInstance = new A(params)
if (aInstance.check)
}
In the above case the Boolean values are not binding properly and we are always getting "null" in the if statement.
Any idea how we could overcome this issue?
Thanks for your time.