|
|
|
The problem is very specific to non-controller views, i.e. if the view is directly in "grails-app/views" or somewhere under "web-app". I don't know why this is the case, but I'll take a look.
Ok, it's because the reload servlet filter skips any URL which has a "." in the last path element, e.g. ".../book/index.gsp". This prevents the tag library from reloading.
My proposed solution is to remove the code in the filter that skips those URLs and instead map the filter to the "grails" and "gsp" servlets. This will allow reloading for all "*.gsp" URLs while excluding the filter from the image, javascript, and css files. I will also try to get the functional test operational - it is currently failing because it runs Grails in the "test" environment and the reloading filter is only active for "dev" at the moment.
Just as a note this is also a problem when you're using content negotiation via file extensions. For example going to ".rss" or ".xml" doesn't reload
Maybe we need to be more specific about what we skip Content negotiation goes through GrailsDispatcherServlet, though, doesn't it? So if we tie the filter to the servlet and remove the hard-coded URL filtering, the reloading should work for content negotiation too.
Thanks for fixing it. I would recommend to refactor the webtests to avoid the duplications in testReloading*.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
As for the problem even now I'm unable to reproduce the issue