-
3 May 2012 11:00 AM #1
Download link to a file with Button
Download link to a file with Button
Hi I want to make a button which will start downloading a file when user clicks on it. How it is possible?
-
8 May 2012 6:49 AM #2
it is so easy:
Code:Button button = new Button( "Download" ); button.addSelectionListener( new SelectionListener<ButtonEvent>() { @Override public void componentSelected( ButtonEvent ce) { Window.open( url, "_blank", null ); } } );


Reply With Quote