* registered on our corresponding <code>UIComponent</code>.</p>
*/
protected Converter createConverter() {
FacesContext context = FacesContext.getCurrentInstance();
IntegerConverter converter = new IntegerConverter();
if (locale != null) {
Locale value = null;
if (UIComponentTag.isValueReference(locale)) {
ValueBinding vb = context.getApplication().createValueBinding(locale);
value = (Locale) vb.getValue(context);
} else {
value = (Locale) HELPER.asObject(context, Locale.class, locale);
}
converter.setLocale(value);
}
if (pattern != null) {
String value = null;
if (UIComponentTag.isValueReference(message)) {
ValueBinding vb = context.getApplication().createValueBinding(pattern);
value = (String) vb.getValue(context);
} else {
value = pattern;
}
converter.setPattern(value);
}
return converter;
}