Alejandro Duarte shows how to write CSV files from Java objects. 👇 0:00 Intro 0:09 The example web application 0:30 The domain model (entity/DTO/VO) 1:17 The OpenCSV Java library 1:31 The view (a Vaadin Grid with data) 2:11 File download logic 4:30 Transforming objects to CSV as a String 7:48 Excluding columns to export 9:10 Fixing “hash“ values in the exported CSV file 10:18 Outro Links: Follow Alejandro on Twitter: Vaadin Flow quick tutorial: The Grid component: Vaadin components and design system: OpenCSV project: Tip: The DynamicFileDownloader class in the Viritin add-on simplifies the code. Try it out:
Hide player controls
Hide resume playing