1. ValidationUtils and the errorCode argument forum.springsource.orgValidationUtils and the errorCode argument I'm using the Validation framework to validate my domain objects prior to insert/update to the database. I've defined multiple Validators that work beautifully but my problem ... |
2. Regarding ValidationUtils forum.springsource.orgRegarding ValidationUtils Hi, i m using ValidationUtils in validator for checking model fields. when i do some manual check then it works f9. Following is the code: if(userModel.getUserLoginId()==null || userModel.getUserLoginId().trim().length()<1){ errors.reject("userLoginId","application.register. ... |
3. ValidationUtils rejectIfEmptyOrWhitespace forum.springsource.orgValidationUtils.rejectIfEmptyOrWhitespace( errors, fieldName, "error.req.field.missing", new Object[]{fieldName}, "is a required field"); and in my messageresource file i have error.req.field.missing="{0}" is a required field. in the jsp it is printing as "{0}" is ... |
4. ValidationUtils.rejectIfEmptyOrWhitespace() - errorCode parameter forum.springsource.orgHello, First posting... Inside my Validator's validate() method I have a line like the following: Code: ValidationUtils.rejectIfEmptyOrWhitespace(errors,"username","requiredField","Required field"); The docs say that errorCode (what I'm passing as "requiredField") is interpretable as ... |
5. Is ValidationUtils.rejectIf... a bad thing? forum.springsource.orgIs ValidationUtils.rejectIf... a bad thing? Hi, I have the following method: Code: @Override public void validate(Object arg0, Errors errors) { FeedbackDto dto = (FeedbackDto) arg0; ValidationUtils.rejectIfEmptyOrWhitespace(errors, "name", "form.field.required"); ValidationUtils.rejectIfEmptyOrWhitespace(errors, "email", "form.field.required"); ... |