I would like to implement custom validation rules for form inputs which go a bit beyond the standard RIFE ones. I can understand how to add a custom error message so that failure of the validation can be reported. What I can't figure out is where the actual rules go. For example, in a user manager app, I would like to:
(a) test whether password and retyped password are the same and complain if not. (b) test that login name is an email address OR one of a fixed list of special names, and complain if not. I am using bean constrained properties, so I imagine I ought to be able to define a custom constraint, perhaps by extending ConstrainedProperty to include new methods? I don't see how I would do (a) this way (how to refer to another property to compare with?), though I could imagine (b) is soluble this way, though whether RIFE would register the connection between the custom method and the custom error message without some further code is doubtful! I'm missing something - can someone help? Thanks, David Herbert. _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
