public void addValidator ( Validator validator , String errorKey ) { if ( ! errors . containsKey ( errorKey ) ) errors . addValidator ( errorKey , validator ) ; }
Binds a validator to an attribute if validation fails .