Announcement Announcement Module
Collapse
No announcement yet.
Declarative Validator (Apache Commons vs. Spring Homegrown) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment

      Working...
      X