this.formatPatterns = formatPatterns;
}
protected Validator createValidator() throws JspException {
FacesContext facesContext = FacesContext.getCurrentInstance();
FormatValidator result = null;
if (validatorID != null) {
result = (FormatValidator) facesContext.getApplication()
.createValidator(
validatorID);
}
String patterns = null;
if (formatPatterns != null) {
if (!formatPatterns.isLiteralText()) {
patterns = (String) formatPatterns.getValue(
facesContext.getELContext());
} else {
patterns = formatPatterns.getExpressionString();
}
}
result.setFormatPatterns(patterns);
return result;
}