Announcement Announcement Module
Collapse
No announcement yet.
Springmodules and common validation integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Springmodules and common validation integration

    Springmodules 0.2 class org.springmodules.commons.validator.AbstractBeanVa lidator method validate(Object obj, Errors errors) contains a pretty annoying piece of code:

    Code:
    catch (ValidatorException e) {
    			// todo: throw exception here
    }
    In case you have invalid validation.xml or validator-rules.xml or any other problem in commons validation you will never find it out because of this catch block. Everything works always just fine.

  • #2
    Hi,

    I just checked, this is now fixed (in CVS):

    Code:
    	public void validate(Object obj, Errors errors) {
    		org.apache.commons.validator.Validator commonsValidator = getValidator(obj, errors);
    		try {
    			commonsValidator.validate();
    		}
    		catch (ValidatorException e) {
    			log.error("Exception while validating object " + obj, e);
    		}
    	}
    Oh, feel free to create JIRA issues for this kind of thing. You'll get a much quicker response.

    Comment

    Working...
    X