typo in word attrs (TagLib issue in Grails project)

Version: IntelliJ 12.1.5

I created a simple taglib: TestingTagLib.groovy in a Grails project.

The attrs variable cannot be resolved. I get a "Typo: In word 'attrs'". Does anyone have any thoughts on what the problem might be?

Here is my taglib file:

class TestingTagLib {


    static namespace = "dac-ui"


    def testing = { attrs, body ->
        body(attrs['foo'])
    }


    def doSomething = { attrs ->


    }


}

Also, the GSP file, during runtime, displays the tag and does not actually process/execute it:

<p><dac-ui:testing foo="bar" /></p>


HELP!!!

Thanks in Advance... :)

1 comment
Comment actions Permalink

Anyone at Jet Brains have any thoughts on this???

0

Please sign in to leave a comment.