Details
Description
Nesting two custom taglibs in a GSP leads to different behaviour between 1.3.7 and 2.0.0. See the following example:
<test:test1>
<test:test2>
${test1} ${test2}
</test:test2>
</test:test1>
class TestTagLib {
static namespace = "test"
def test1 = { attrs, body ->
out << body(test1:1)
}
def test2 = { attrs, body ->
out << body(test2:2)
}
}
Output in grails 1.3.7:
1 2
Output in grails 2.0.0:
1
I couldn't find a note on this, so I assume this is unexpected behaviour.
Just to add a comment to this: if the parent tag doesn't provide properties to body(), then the child tag's properties work. But if the parent passes in properties, then the child tag's properties are ignored.