|
From: Sean M. <se...@se...> - 2005-09-12 12:51:29
|
This looks like a really neat option for single-field validations; is there an obvious way of handling multi-field validations as annotations, like collision : (firstName is not blank or lastName is not blank) and userid is not blank : 'Fill in either name or id' Cheers, Sean Miller. Thomas Van de Velde wrote: > I am wondering if it'd make sense to have the validation rules defined > as annotations. > > e.g. > > @RequiredField > @EmailAddress > > I've worked with forms that contains 2 000 + fields and maintaining > external XML files is really cumbersome in such a case? Any thoughts, > pros/cons? |