Im a newbie in the Grails Framework so keep that in mind. I have a Button Template which i render on a different place. I want to keep all the functionality of the template and the text on all usages but one.
How do i do this?
I tried Something like this:
<g:render template="relativePath/myTemplate"/>
<g:message code="myLabel.newText" default="newText"/> //should replace the text in the template
Obviously this didn't work.
This question is incomprehensible. You really should write better questions. Generally, if you want to pass something to the template, it would be something like this:
Then in the myTemplate you could do...
However the whole point of g:message is to not hard code messages, but to user messages.properties. Maybe you're trying to pass in a different message code:...