Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin 8 & DefaultConverterFactory
Hi,
I'm going to use ConverterFactory within vaadin 8 as described here:
https://vaadin.com/wiki/-/wiki/Main/Changing+the+default+converters+for+an+application
(thre goal is to set grid display format for java.util.Date in whole application)
But class DefaultConverterFactory is depricated.
Vaadin 8 has another formating concept?
Vaadin 8 uses DateRenderer in Grid. But, unfortunately, this only print Date.toString() in default locale.
In near future, they said, there will be LocalDateRenderer...
actGrid.addColumn(m -> m.getActivity().getStartDate(), new DateRenderer())
Otherwise you can use a custom formatter, this way:
DateTimeConverter dtConv = new DateTimeConverter(); // your com.vaadin.data.Converter
...
actGrid.addColumn(m -> dtConv.convertToPresentation(m.getActivity().getStartDate(),
new ValueContext(locale)));
Deprecating DefaultConverterFactory without replacement was one of massive let-downs of Vaadin 8. Now there is no way to get rid of commas in numbers littered everywhere in UI