As expected.
When I leave out the model attribute to the template rendering...
def index() {
render template: "index" // <-- no model
}
...suddenly the getSomethingElse() method is invoked too, just before that. When reloading the page, "something else" is rendered, followed by the contents on my index-snippet:
something else
Hello from the _index.gsp
What I did NOT expect is that basically every additional action - in this controller - starting with "get" seems to be invoked before my render, that's at least the pattern I can see here, if I do not explicitly define a model passed to the "render" method.
I went through the Grails documentation and Grails JIRA, but couldn't find any documentation about this feature, or ticket to a bug, nor any reference from the Grails docs to leveraging any existing Spring MVC feature.
Who can help me finding where this behavior is documented?