Skip to content

Plugin breaks g:link tags #2

Description

@jonspalmer

For me this plugin mostly doesn't work as it fundamentally breaks g:link tags.

To reproduce

  1. create a new grails app.
  2. add the gsp-resource plugin in BuildConfig.groovy
  3. add a gsp resource to ApplicationResources.groovy (the sample style one is fine)
  4. put a g:link tag in the main page of the app (something like: <g:link url="/">Index Link/g:link
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions