grails-google-visualization
grails-google-visualization copied to clipboard
Template not found for name [/visualization_javascript] and path [/_visualization_javascript.gsp (Grails 3.0.9)]
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"
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?)
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?
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.)
I'm getting the same error in Grails 3.1.9.
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.
#62 It seems like in Grails 3 in order to render template from plugin, we need to avoid using plugin attribute of render tag.
Fixed with 2.1, but this version (and all following versions) are not tagged in GH.