For me this plugin mostly doesn't work as it fundamentally breaks g:link tags.
To reproduce
- create a new grails app.
- add the gsp-resource plugin in BuildConfig.groovy
- add a gsp resource to ApplicationResources.groovy (the sample style one is fine)
- put a g:link tag in the main page of the app (something like: <g:link url="/">Index Link/g:link
- run the app and navigate to the index page
I get this error:
Caused by MissingMethodException: No signature of method: org.codehaus.groovy.grails.web.mapping.CachingLinkGenerator.link() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, groovy.lang.ExpandoMetaClass$ExpandoMetaProperty) values: [[uri:/index, params:[execution:groovy.lang.ExpandoMetaClass$ExpandoMetaProperty@44822268]], ...]
From digging through the stack trace it looks like something about rendering the gsp resources has the effect of converting the request object to an ExpandoMetaClass and hence the missingMethodException.
For me this plugin mostly doesn't work as it fundamentally breaks g:link tags.
To reproduce
I get this error:
Caused by MissingMethodException: No signature of method: org.codehaus.groovy.grails.web.mapping.CachingLinkGenerator.link() is applicable for argument types: (org.codehaus.groovy.grails.web.taglib.GroovyPageAttributes, groovy.lang.ExpandoMetaClass$ExpandoMetaProperty) values: [[uri:/index, params:[execution:groovy.lang.ExpandoMetaClass$ExpandoMetaProperty@44822268]], ...]
From digging through the stack trace it looks like something about rendering the gsp resources has the effect of converting the request object to an ExpandoMetaClass and hence the missingMethodException.