Long.TYPE.equals(mappedType) ||
Integer.TYPE.equals(mappedType) ||
Short.TYPE.equals(mappedType) ||
Byte.TYPE.equals(mappedType) ||
Character.TYPE.equals(mappedType)) {
NumericFormatter formatter = new NumericFormatter(dataField, format, mappedType);
dataField.setFormatterFactory(new DefaultFormatterFactory(formatter, formatter, formatter, formatter));
//dataField.setFormatterFactory(new DataFieldFormatterFactory(mappedType, formatter));
dataField.setOriginalFormatText(format);
}