Results 1 to 3 of 3

Thread: Rules-Based Validation - Does this exist?

  1. #1
    Join Date
    Jan 2005
    Location
    Ottawa Canada
    Posts
    14

    Default Rules-Based Validation - Does this exist?

    I have seen references to the fact that rules-based validation may be added to Spring. (Rob Harrop's book ProSpring mentions this for one). Does this exist yet?

    Specifically, we are looking to improve the validation for our domain models. Some of the business rules are relatively complex, well... they really are not all that complex, but they require input data from multiple objects not just the object that is passed to the standard Validator.

    Also, it seems to me that validation should be able to be defined against an attribute, not just the class. As a simple example, I'd like to specify that a specific attribute is mandatory, possibly conditionally mandatory depending on the value of an attribute in a different model. I don't really want to bury this code into a single Validator class along with all of the other attribute validation rules on that class.

    I would appreciate any thoughts or options for domain model validation.

    Thanks...

    Jim

  2. #2
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    Have you seen Valang?

    http://opensource2.atlassian.com/con...lang+validator

    It's an excellent option for validation.

    Seth

  3. #3
    Join Date
    Jan 2005
    Location
    Ottawa Canada
    Posts
    14

    Default

    Thanks - this looks like exactly what I was looking for...

Similar Threads

  1. declarative validation rules in Spring
    By tentacle in forum Container
    Replies: 10
    Last Post: Jan 31st, 2006, 07:36 AM
  2. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  3. Does a context file validation tool exist?
    By biguniverse in forum Container
    Replies: 4
    Last Post: Aug 21st, 2005, 08:12 PM
  4. Domain Object Validation
    By lhilden in forum Architecture
    Replies: 4
    Last Post: Dec 14th, 2004, 07:00 AM
  5. Replies: 2
    Last Post: Oct 22nd, 2004, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •