I have a beginner's question... Forgive me if it's in a FAQ somewhere.
I set up a message source in my applicationContext.xml file:
<!-- kjr added -->
<bean id="messageSource"
class="org.springframework.context.support.Resourc eBundleMessageSource">
<property name="basenames">
<list>
<value>messages</value>
</list>
</property>
</bean>
I also added a messages.properties and messages_en.properties file in src/main/resources, and annotated my Entity with the following:
@Column(length=2048)
@Size(min = 10, message = "{description.required}")
private String description;
What's great is that the JSR-303 annotations are firing. What's not is that I've tried ${}, #{} and {} and none of them work. The ${} yells about groups (looks like it's parsing for attributes from the annotation parameters) and the # and {} ones are ignored. Does roo support localizing error messages yet, and if not, is it on the roadmap?
Thanks and keep up the good work. Interesting framework and has lots of potential.
Ken


Reply With Quote
