DataField df = newDataField(name, columns, new DefaultFormatterFactory(displayFormatter, displayFormatter, editFormatter, null));
return df;
}
public static DataField newAmountField(String name, int columns, String pattern, int decimalPlaces, Class<?> mappedType) {
AmountFormatter editFormatter = new AmountFormatter(pattern, decimalPlaces, true, mappedType);
AmountFormatter displayFormatter = new AmountFormatter(pattern, decimalPlaces, false, mappedType);
DataField df = newDataField(name, columns, new DefaultFormatterFactory(displayFormatter, displayFormatter, editFormatter, null));
return df;
}