Import CSV file into vaadin and populate CSV data into vaadin table? any he

Import CSV file into vaadin and populate CSV data into vaadin table

This might help:
https://gist.github.com/canthony/3655917
. It’s written for V6, but apparently should work with V7 with minor mods.

Thanks

@here, can someone assist me to achieve the same thing in Vaadin 13 (java) grid?
I went through the document and found that addColumn() method requires a property in bean class which I can’t specify properties in bean class beofrehand cause csv is uploaded by use on runtime.

Hallo Anjul,

can you please ask the question in the “03. Vaadin Flow” section?
This here is for Vaadin up to V8, Flow is Vaadin 10+.

I hope in the meanwhile you have found that there are numerous ways to configure V8 and V10+ grids,
also such where you do not have to bind to beans with properties known at compile time.
Instead, you can dynamically add Columns, e.g. using a ValueProvider.

Cheers,
Enver

Oh, and have a look at OpenCSV.

https://howtodoinjava.com/library/parse-read-write-csv-opencsv/