How do I branch if message.properties-code exists
- by skurt
I want to branch if a message-property-code does exist or not.
<g:if test="${message(code: 'default.code.foo')}">
true
</g:if><g:else>
false
</g:else>
should answer true if there a message property named default.code.foo and false if not.
It fails because it answers the code if there is no property for it.