Results 1 to 3 of 3

Thread: Declarative Validator (Apache Commons vs. Spring Homegrown)

  1. #1

    Default Declarative Validator (Apache Commons vs. Spring Homegrown)

    hi,

    I am starting to use Spring and would like to know the status of the declarative validation engine in the sandbox. Also if someone could tell me why Commons Validator isn't or shouldn't be used with spring (per http://www.jroller.com/comments/raib...or_with_spring). I currently would like to be able to use client and server side validation declaratively.

    Thanks,
    Julian

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Status:

    Highlights:

    - A strong API for constructing validation rules exists in org.springframework.rules. This is applied in Spring Rich Client to drive declarative, as-you-type validation of form fields corresponding to domain object properties.

    Areas needing development:

    - The validation error reporting portion of this module in rules.reporting is not fully developed and somewhat weak at present.
    - Client side validation for web apps is currently not supported.
    - Spring MVC integration has not been developed at present.

    In summary, it's not ready for out-of-the-box consumption in a Spring webapp. It's possible to take the base rules API, devleop the client side piece and the Spring MVC piece, but obviously that would provide some infrastructure development effort on your part. While this is on the rules road map, currently other things like Spring 1.2 are taking priority (so in other words, I wouldn't expect anything too soon here.)

    Hope this helps!

    Keith
    Keith Donald
    Core Spring Development Team

  3. #3

    Default

    thanks keith, would you suggest I use Matt Raible's approach and integrate Common Validator until things pan out a bit more? How compatible will the two declarative syntaxes be (Apach Commons Validator vs. Spring Validation)?

    Thanks again,
    Julian

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  3. Replies: 2
    Last Post: Feb 17th, 2005, 12:31 PM
  4. Replies: 2
    Last Post: Nov 25th, 2004, 03:41 PM
  5. Replies: 1
    Last Post: Nov 25th, 2004, 11:08 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
  •