Closed mobileWMS closed 4 years ago
BTW, in my forked project, ((StreamResource) fileDownloader.getFileDownloadResource()).setCacheTime(0);
seems to fix it, so long as I change the file name every time I load the table ( or add to the table ).
fix merged into 1.0.1, using #32. Closing.
If you are on a table or grid and export it to Excel, it works fine. If you then refresh the data in the grid/table, it often downloads the same exact file. Even setting the name using
setDownloadFileName("newname.xls");
does not work because by that time theFileDownloader
is already created and will never get refreshed until you leave the screen and come back. SincefileDownloader
is private, I cannot callfileDownloader.setCacheTime(0);
to get around this issue, as per https://github.com/vaadin/framework/issues/10909. I think the simplest solution would be to change this fromprivate
toprotected
. I am pretty sure if it was protected, I could sub-class it and just callfileDownloader.setCacheTime(0);
to get around the issue. Is that possible, or am I missing something?