Is it possible to access the current controller example from within the tag lib? For example:
class FooTagLib {static namespace = 'foo' def msg = {attrs, body - & gt; // Can I get a reference for the current controller? }} I want to do this because I store some data in the property of the controller and want to access it within TagLib. I know it may sound weird, but just laugh me
inside your msg tag: / p>
grailsApplication.getArtefactByLogicalPropertyName (' Like the scenes, you have the controller name and actionName via the current controller and verb. / P>
Comments
Post a Comment