I need to download an excel file I produces in the application.
The standard solution seems to be :
. create the file
. put a Link to the screen
. the user clicks the link and a new page prowser is opened with the file.
Is it possible do the same with a single click ?
I mean create a button which do everithing ?
Tks
Tullio
Which version of Vaadin are you using? Vaadin 7 comes with a very handy FileDownloader you can use, and you can check out this wiki page
Letting the user download a file
Besides, I have an
Exporter Addon , which allows to export data to Excel or PDF, it is quite elementary, but you can get an idea how to use the FileDownloader to download an Excel file.
I didn’t mean you should use that addon, but to check its source code to see how it handles download.
But anyway, Sorry for that previous messages didn’t help.
Will this
post be helpful?