Question related to messageSource
This question is just partly related to Roo.
I'm using Roo as "best-practice-template" for a Spring app.
I also used the messageSource definition in the springmvc-config.xml..
However I keep getting a:
No message found under code 'my.title' for locale 'en_US'.
when using <spring:message code="my.title" />
I checked the config a couple of time but don't see anything wrong.
When I inject the messageSource in a controller I can retrieve the message using getMessage(..) without a problem, so the bundle is loaded.
Then I bumped against this thread http://forum.springsource.org/showthread.php?t=18199 and I moved the messageSource bean from springmvc-config to applicationContext and the the <spring:message code="my.title" /> works!
Now I'm wondering why is it working inside springmvc-config for Roo. Is there some special magic going on there?