jdaugherty opened a new issue, #161:
URL: https://github.com/apache/grails-intellij-plugin/issues/161
Add support for better handling of namespaces in controllers.
Not sure how this would be handled since the layout is up to the user but
given the following example structure:
grails-app/
controllers/
com.somepackage.controllers.somenamespace/
IndexController.groovy = {
static namespace = 'somenamespace'
def afterInterceptor = { model, modelAndView ->
if(modelAndView) {
modelAndView.viewName =
"/${namespace}/${modelAndView.viewName}"
}
}
def index() { }
}
views/
somenamspace/
index/
index.gsp
Nice to have features:
- View model variable resolution from action.
- Creating controller would create the path example below.
- Open corresponding view from controller.
- Open corresponding controller from view.
- Refactoring/Renaming of controllers does not corrupt view structure.
---
*Imported from
[IDEA-126363](https://youtrack.jetbrains.com/issue/IDEA-126363) · Type: Feature
· Votes: 1*
*Comments, attachments, dates and reporter are not part of the export —
follow the link above for the full history.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]