Hi,
I want to add some constraints to a bean based on the presence of a
given value (e.g. password change in an "update profile" page where
the constraints are applicable only if there is a value in the first
password field). I've already tried putting a condition in
activateValidation(), but I'm not sure if this is the correct place
for that.
if (getPassword1() != null && getPassword().trim().length() > 0)
addConstraint(new ConstrainedProperty("password2").notNull(true).
notEmpty(true));
That did not work.
Thanks,
Eddy
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users