-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greenscript not loaded when 404 happens #10
Comments
Has this been resolved? I get the same behaviour in test mode; Minimized CSS is not loaded. In production mode and in Jetty I get the following exception: Template execution error (In {module:greenscript-1.2.6k}/app/views/tags/greenscript/gs_.html around line 23) play.exceptions.TemplateExecutionException: Cannot invoke method declare() on null object |
This still seems to be an issue. I haven't been able to track down the cause yet |
HOW TO REPRODUCE:
My app/views/errors/404.html is as follows:
#{extends 'main.html' /}
#{set title:'Page not found (HTTP 404)' /}
And the main.html uses these greenscript definitions:
#{greenscript.css 'jquery-ui/jquery-ui-1.8.7.custom main', output:'all'/}
#{greenscript.js 'jquery.kuntokanta jquery.json-2.2.min jquery.form-2.61.min jquery.cookie', output:'all' /}
These work fine with normal use-cases when page is found. It even works, if I explicitly set notFound() in my controller. But it does not work, if the Play framework itself "causes" that Not Found -page.
The text was updated successfully, but these errors were encountered: