Quick update
MVC, Validation, xVal January 24th, 2009Just 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.

January 24th, 2009 at 9:14 pm
Great news, the fact that others are writing plugins for xVal means a lot. Thanks!
January 24th, 2009 at 10:50 pm
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
January 25th, 2009 at 10:26 am
“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.
January 26th, 2009 at 8:37 am
[…] Quick update - Steve Sanderson give an update on xVal, his validation framework, including news of an xVals provider from the Validation Aspects project, along with some roadmap of where the project is going. […]
January 31st, 2009 at 12:38 pm
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
February 2nd, 2009 at 9:12 am
@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.