23 Nov 2012 4:51 AM #1
Custom validator comparing two fields
I have two DateFields, startDate and endDate.
I want to write a validator that checks that startDate should be smaller than endDate and vice versa.
The Validator interface however only accepts one field and one value.
What's the best way to implement the this check?