Site Meter
 
 

Quick update

Just wanted to raise some awareness of Mike Saunders’s interesting Validation Aspects project, which he’s just written an xVal rules provider for. Validation Aspects is a validation framework for WPF and ASP.NET MVC. It’s built using aspect-oriented programming (AOP) technology, which means it can inject rule-enforcing code directly into your property setters. At the moment this doesn’t fit totally seamlessly with ASP.NET MVC’s built-in model binder, but it has potential to work great with the forthcoming RC version of ASP.NET MVC.

Since it’s now compatible with xVal, it automatically does client-side validation too.

What’s coming to xVal

I’ve been busy lately working on SQL Server 2008 stuff (oddly enough), but as soon as I’m through with that I’ll try and find time to enhance xVal in the following ways:

  • Support for ASP.NET MVC Release Candidate (assuming it’s available)
  • Support for NHibernate Validator, yet another server-side validation framework. This one’s closely integrated into NHibernate. Integrating this with xVal simply means that it will do client-side validation easily. I’ve already written most of the rules provider for this.
  • Support for comparison validators (e.g., “return date cannot be before departure date”) and set validators (e.g., “you must enter A, B, or C”)
  • Improved internationalization – so all the default error messages come out localized, regardless of whether the client-side library (jQuery Validation, ASP.NET native validation) offers internationalization
  • Documentation on how to apply custom validation logic

Other feature requests are welcome.

6 Responses to Quick update

  1. mike

    Great news, the fact that others are writing plugins for xVal means a lot. Thanks!

  2. Andy

    Hey Steve,

    Great! REALLY looking forward to integrating the latest updates when they are done. It’s an awesome framework so I’m hanging out for the updates!!

    Cheers

  3. “Documentation on how to apply custom validation logic”

    This is the most important one from my side, without it the framework is quite difficult to use if you do happen to already have your own server-side validation approach.

  4. Pingback: Reflective Perspective - Chris Alcock » The Morning Brew #272

  5. Andy

    Hey Steve,

    Any news on this front ? Really pumped for the next release before I start integrating it into my project as I’m using RC now!

    Love any update when you have the time!

    Cheers,

    Andy

  6. Steve

    @Andy – not surprisingly I’m suddenly very busy with the book now ASP.NET MVC RC has been made available! However, my intention is to have some meaningful update of xVal ready by this time next week. At the very least I’ll ensure compatibility with ASP.NET MVC RC, but I also intend to get the NHibernate Validator provider in place.