public FormInputValidator fileExists ( VisValidatableTextField field , String errorMsg ) { FileExistsValidator validator = new FileExistsValidator ( errorMsg ) ; field . addValidator ( validator ) ; add ( field ) ; return validator ; }
Validates if absolute path entered in text field points to an existing file .