grails-google-visualization icon indicating copy to clipboard operation
grails-google-visualization copied to clipboard

Template not found for name [/visualization_javascript] and path [/_visualization_javascript.gsp (Grails 3.0.9)]

Open darkshadowray opened this issue 8 years ago • 7 comments

Hi,

plugin version: 2.0

steps to reproduce: create a new grails (3.0.9) project create a new controller create index.gsp

copy example from wiki:

<html>
    <head>
        <gvisualization:apiImport/> 
    </head>
    <body>
    <%
    def myDailyActivitiesColumns = [['string', 'Task'], ['number', 'Hours per Day']]
    def myDailyActivitiesData = [['Work', 11], ['Eat', 2], ['Commute', 2], ['Watch TV', 2], ['Sleep', 7]]
    %>
    <gvisualization:pieCoreChart elementId="piechart" title="My Daily Activities" width="${450}" height="${300}"  columns="${myDailyActivitiesColumns}" data="${myDailyActivitiesData}" />
    <div id="piechart"></div>

    </body>
</html>

opening the page localhost:8080/test/index causes the error "Template not found for name [/visualization_javascript] and path [/_visualization_javascript.gsp"

bug

darkshadowray avatar Nov 30 '15 17:11 darkshadowray

I can confirm this behavior using Grails 3.0.14 in Linux environment, however this problem does not appear in Windows (forward / backslash or capitalization issue?)

bronoman avatar Mar 25 '16 10:03 bronoman

Working with Grails 3.1.4 on CentOS and having the same problem. Not able to test it on Windows though. Is there a possible work around?

gkleinoscheg avatar Mar 30 '16 08:03 gkleinoscheg

Confirmed for me too, with the exception, that this error only occurs, when i run the app from a built war (running from 'grails run-app' works fine.)

amenting avatar Apr 15 '16 13:04 amenting

I'm getting the same error in Grails 3.1.9.

kousen avatar Jul 09 '16 20:07 kousen

Same error here. I currently worked on annotationChart support, but this bug hindered me to test it.

After copying _formatter.gsp and _visualization_javascript.gsp into my test-project, it worked for now.

robertoschwald avatar Jul 10 '16 06:07 robertoschwald

#62 It seems like in Grails 3 in order to render template from plugin, we need to avoid using plugin attribute of render tag.

puneetbehl avatar Jul 10 '16 14:07 puneetbehl

Fixed with 2.1, but this version (and all following versions) are not tagged in GH.

robertoschwald avatar Jan 03 '22 12:01 robertoschwald