case BOBPHONENUMBER:
//Lets do some custom code here..
//We'll add a validator. This validator is just checking that the string applies
//a pattern match and passing in a REGULAR Expression
Vector phoneNumValidatorVector = new Vector();
phoneNumValidatorVector.addElement(
new Validator(Validator.VALIDATION_TYPE_PATTERN_MATCH,
Validator.PATTERN_MATCH_SUBTYPE_MATCHES_REGULAR_EXPRESSION,
"[0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]",
"Enter a valid value of type 111-111-1111"));
bobphoneNumber.setValidators(phoneNumValidatorVector);
super.configureControlById(ID);
break;
This custom code validates that input in the phone number field is in the ###-###-#### format.