【发布时间】:2011-01-14 00:02:15
【问题描述】:
我想定义我自己的标签库,它将使用g:datePicker 来生成它的一些输出。
class MyTagLib
def myTag = {attrs ->
// I need to invoke the `datePicker` tag of the the `FormTagLib` tag library
// provided by Grails
}
}
我想在调用此标记时传递属性映射。当我调用 g:datePicker 时,我希望它直接将其输出写入响应(就像在 GSP 中调用它时一样)。
我该怎么做? 谢谢。
【问题讨论】: