Details
Description
g:set doesn't work in tag body if body is called with arguments
example:
taglib
class ExampleTagLib {
def bodytag = { attrs, body ->
if (attrs.model)
out << body(attrs.model)
else
out << body()
}
}
This gsp
<g:bodytag><g:set var="a" value="1"/></g:bodytag><g:bodytag model="[c:3]"><g:set var="b" value="2"/></g:bodytag>${a} ${b} ${c}
should output "1 2 "
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits