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.
With Table we used ColumnGenerator to generate: 1) One column with an <a href=""> html snippet to retrieve the file 2) One column with a com.vaadin.ui.Upload to upload a new file
The download link I can more or less do with an HTMLRenderer, but what about the Upload button?
Vaadin has com.vaadin.ui.Upload, that encapsulates most of the work, but I can't use that from a Renderer. As far as I can see, I can't use it in the grid editor row either.
The closest I can think of is to have a ClickableRenderer of some sort, and onClick create an instance of Upload, add it to the UI somewhere, hide it with a css class and fake a click on it. Seems really messy.