我想定义我自己的taglib,它将使用g:datePicker
来生成它的一些输出。Grails:从另一个内部调用一个taglib
class MyTagLib
def myTag = {attrs ->
// I need to invoke the `datePicker` tag of the the `FormTagLib` tag library
// provided by Grails
}
}
我想在调用此标记时传递属性映射。当我调用g:datePicker
时,我希望将它的输出直接写入响应(就像在GSP中调用它时一样)。
我该怎么做? 谢谢。
+1谢谢你救了我的时间:-) – jpswain 2011-06-23 04:13:59