Announcement Announcement Module
Collapse
No announcement yet.
Validator with meta information passed in Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validator with meta information passed in

    Hello all,

    I got a case where I need to pass some other information to the validator. These are the meta information about the fields (required, text length, max numerica value etc), to be used in the validation. How could I do that?

    I looked at the Validator interface, looks like the only way is through the command object by attaching a reference to it. any other ideas?

    Or achitecturely I should not use this validator interface at all?

    thanks.

    jfd

  • #2
    Take a look at Commons Validator support in the sandbox.
    There is a good example on the wiki that shows how to configure Commons Validator with Spring http://opensource.atlassian.com/conf...per+Controller. You can also search this forum for further discussions.
    HTH

    Comment


    • #3
      Thanks a lot.

      I'll take a dive on this.

      jfd

      Comment

      Working...
      X