Results 1 to 2 of 2

Thread: spring-batch-samples

  1. #1
    Join Date
    May 2010
    Posts
    5

    Default 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...

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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
  •