Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: converted to 1.6 markup

Wiki MarkupUp to \[:Validator\]

...

Validator Wish List

A space for wishes validator future functionality.

...

Validator Integration with Frameworks Other Than Struts

...

I have written an adapter of the Commons-Validator for the \[http://www.springframework.org Spring\] project. While considering if the adapter could be released (moved out of the sandbox), it was determined that there were two classes that were outside the scope of Spring that should be maintained as part of the Commons-Validator project. The following suggestions provide an outline of how this can be done without breaking backward compatibility. Both of the classes mentioned below can be found in the Spring sandbox as well as the Struts source code (customized respectively for each framework).

Commons-Validator should maintain the FieldChecks class. Currently FieldChecks is a class that Spring (as well as Struts and any other framework that wants to support Commons-Validator out of the box) must provide to connect Validator to the specific framework's error handling mechanism. It would be nice if the Validator project would abstract the framework-specific part of the FieldChecks class out to a simple interface something like this:

...

It would be even better if generation of the validation javascript could be abstracted out into a JavascriptValidatorSupport class that could act as a base for JavascriptValidatorTag and also be usable for integration with other view technologies, like Velocity.unmigrated-wiki-markup

Thanks, \[mailto:millerd_AT_paonline_DOT_com Daniel Miller\]unmigrated-wiki-markup

...

Up to \[:Validator\]