Discussion:
include template from plugin not working on grails 2.0 ?
clerecudzio
2012-04-13 10:38:10 UTC
Permalink
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 ?



--
View this message in context: http://grails.1312388.n4.nabble.com/include-template-from-plugin-not-working-on-grails-2-0-tp4554372p4554372.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
davide.cavestro
2012-06-26 08:32:17 UTC
Permalink
I've seen something similar using the http://grails.org/plugin/settings
Settings plugin . Did you find the cause?
I've also started an
http://grails.1312388.n4.nabble.com/Problems-with-quot-Settings-plugin-quot-is-it-mantained-td4630643.html
new thread ad-hoc .
Cheers
Davide

--
View this message in context: http://grails.1312388.n4.nabble.com/include-template-from-plugin-not-working-on-grails-2-0-tp4554372p4630644.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
asoltesz
2014-05-26 17:19:27 UTC
Permalink
I have recently bumped into this problem but couldn't find a solution.

What was the solution to your issue?

Could you please share it ?



--
View this message in context: http://grails.1312388.n4.nabble.com/include-template-from-plugin-not-working-on-grails-2-0-tp4554372p4657022.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...