Quantcast

include template from plugin not working on grails 2.0 ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

include template from plugin not working on grails 2.0 ?

clerecudzio
I have a plugin that creates a taglib and the taglib renders a gsp which i stored in plugin's view.

I stored it in views/someTemplates/_mytemplates.gsp

My taglib does this to renders the template
out << render(
template:'/someTemplates/mytemplates', plugins:'myplugin',
                        model:[someModel])

runs well on run-app, but on run-war, is getting error :


Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Template not found for name [langSelectorTemplates/selector] and path [/someTemplates/_mytemplates.gsp]
        ... 3 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Template not found for name [/someTemplates/mytemplates] and path [/someTemplates/_mytemplates.gsp]
        at gsp_cygnusTemplateEngine_layoutsformsContainer_gsp$_run_closure2.doCall(formsContainer.gsp:56)
        at gsp_cygnusTemplateEngine_layoutsformsContainer_gsp.run(formsContainer.gsp:89)
        ... 3 more

am i doing something wrong ?
Or is this a bug on grails 2.0.1 ?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: include template from plugin not working on grails 2.0 ?

davide.cavestro
I've seen something similar using the Settings plugin. Did you find the cause?
I've also started an new thread ad-hoc.
Cheers
Davide
Loading...