Sorry, mixed up date with decimal:
add(new TextField<Double>("doubleProperty", Double.class) {
@Override
protected IConverter<?> createConverter(Class<?> type)
{
return new DoubleConverter() {
protected NumberFormat newNumberFormat(Locale
locale) {
return super.newNumberFormat(Locale.ENGLISH);
};
};
}
});
You could equally well just override Component#getLocale() to return
ENGLISH, but then message resources would be in English too.
Have fun
sven
Am 06.01.2018 um 02:26 schrieb extraquoo:
why using getDateFormat() for the decimal/currency converter ? can you
explain a little bit detailed?
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org