I expected the following to ouput 1 2
GSP
<test:test1>
<test:test2>
${test1} ${test2}
</test:test2>
</test:test1>
TagLib
class TestTagLib {
static namespace = "test"
def test1 = { attrs, body ->
out << body(test1:1)
}
def test2 = { attrs, body ->
out << body(test2:2)
}
}
Instead it results in 1, meaning that the inner variables are not correctly resolved. Is it a grails 2.0 bug? Is there any workaround?
Its a bug and will be fixed in 2.0.1.
http://jira.grails.org/browse/GRAILS-8554