You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2017-01-26 10:25:36.932 ERROR --- [nio-8080-exec-4] o.g.web.errors.GrailsExceptionResolver : MissingMethodException occurred when processing request: [GET] /test/index
No signature of method: include.TestController.raw() is applicable for argument types: (java.lang.String) values: [Bla bla bla]
Possible solutions: wait(), any(), grep(), wait(long), use([Ljava.lang.Object;), any(groovy.lang.Closure). Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
at org.grails.core.DefaultGrailsControllerClass$ReflectionInvoker.invoke(DefaultGrailsControllerClass.java:210)
at org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:187)
at org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77)
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: groovy.lang.MissingMethodException: No signature of method: include.TestController.raw() is applicable for argument types: (java.lang.String) values: [Bla bla bla]
Possible solutions: wait(), any(), grep(), wait(long), use([Ljava.lang.Object;), any(groovy.lang.Closure)
at grails.artefact.gsp.TagLibraryInvoker$Trait$Helper.methodMissing(TagLibraryInvoker.groovy:92)
at include.TestController.index(TestController.groovy:8)
... 14 common frames omitted
Environment Information
**Operating System: Linux 64 bit
**Grails Version: 3.2.4
**JDK Version: 1.8.0_111
Example Application
The text was updated successfully, but these errors were encountered:
##############################
Raw Output
If you are 100% sure that the value you wish to present on the page has not been received from user input, and you do not wish the value to be encoded then you can use the raw method:
${raw(book.title)} The 'raw' method is available in tag libraries, controllers and GSP pages.
##############################
So it looks like it was optimised to be a method for tag libraries only and not a tag in all versions of 3.x so that documentation is incorrect for all versions of 3.x right now.
I don't know why you would even need it in controllers since there is no automatic escaping in the render method so just using the string without raw would do it.
###Full Description
The 'raw' method does not work in controllers.
Steps to Reproduce
Expected Behaviour
Output: Bla bla bla
Actual Behaviour
Exception:
Environment Information
Example Application
The text was updated successfully, but these errors were encountered: