-
Jun 24th, 2010, 07:23 AM
#1
spring-batch-samples
I was looking / running the samples to see how the SpringValidator works... I do NOT see where any message property file is defined to hold the external messages (i.e. for isin_length')? All the samples use this as the example:
{ isin : length(?) < 13 : 'ISIN too long' : 'isin_length' : 12}
They all print the DEFAULT message 'ISIN too long' only in the Errors class that is returned? Am I missing something to make the external message be returned? Does this functionality work in the samples provided? Where is the message property file defined and the configuration???
Thanks...
-
Jun 29th, 2010, 02:09 AM
#2
Probably you need to create a MessageSource in the application context (with bean name "messageSource"). It's a standard ApplicationContext feature, but I'm only assuming that's how the validator hooks into messages.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules