Save File Dialog Box

Hi,
I have a file present in my working directory and I wanted to make a copy of that file on the click of a button. I want a save dialog box to be invoked on the press of the button, allowing the user to give the new file name. How can I do that? Kindly help me out. Thanks in advance.

Regards,
Sourajit

For Vaadin 7 use this:
Letting the user download a file

Hi,

Thanks for your reply. I am using Vaadin 6.8.9.

Then you have to “pack” your file into a FileResource/StreamResource/… and then you can use the method described in
this Thread
to download it.