Grails 4.0.4 <g:include> tag does not work
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
Have created an application with grails 4 and on HomeController.index gsp page include a tag ``. Which should include content from SampleController.index view. But it does not do anything.
### Task List
- [x] Steps to reproduce provided
- [ ] Stacktrace (if present) provided
- [x] Example that reproduces the problem uploaded to Github
- [ ] Full description of the issue provided (see below)
### Steps to Reproduce
1. Generate application with grails 4.0.4
2. Under home/index.gsp add tag ``.
3. Run the application on Websphere 8.5.5. I've used specifically Websphere 8.5.5.17. But it would be reproduce on any version of Websphere 8.5.5 with Java 8 and Websphere Liberty 20.
### Expected Behaviour
It should display content from SampleController.index action when URL hit to `mytest/home`
### Actual Behaviour
It does not include content from SampleController.index action.
### Environment Information
- **Operating System**: Windows 8.1
- **Grails Version:** 4.0.4
- **JDK Version:** 8
- **Container Version (If Applicable):** Websphere 8.5.5.17, Websphere Liberty 20
### Example Application
- https://github.com/parthbhagat/grails4-include-issue.git
A similar issue reported on github.
https://github.com/grails/grails-gsp/issues/33
And the resolution of the same is supposed to be exist on grails 4.0.4 as per this (https://github.com/grails/grails-gsp/pull/23).
But the issue still exists. Anything is missing here?
### Update
There is some more finding on this issue. Have checked this application with grails version 4.0.3 & 4.0.2. Surprisingly with both versions the application works fine (requires gorm version change as per respective grails version). So there is something related to grails 4.0.4 version specifically. Hence changing title of the issue from grails 4 to grails 4.0.4.
Contributor guide
Research direction
Start with the linked example application and reproduce the issue using Grails 4.0.4, then compare it with Grails 4.0.3 and 4.0.2. Inspect HomeController.index, the home/index.gsp include, and the SampleController.index view, then review the referenced grails-gsp issue and pull request. Done means the included view content renders at mytest/home on the affected versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100