Hi,

While setting up validation I encountered the following due to user error. If the sameAs() is misspelled or the property is missing the ConstrainedProperty rule is simply dropped (not added) and the validation passes. I guess it would be better to notify the developer of the problem with the missing property.
See below for example of user error :-):

protected void activateValidation() {
...
        addGroup("setup")
                .addConstraint(new ConstrainedProperty("password2")
                        .persistent(false)
                        .notNull(true)
.minLength (RifeConfig.Authentication.getPasswordMinimumLength()) .maxLength (RifeConfig.Authentication.getPasswordMaximumLength())
                        .sameAs(password));
...
}

Erik



_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to