How to disable the security hint in IE 7 and 8 while downloading a file

Hi all,

I click the first time, security hint block the download, I accept it and have to click a second time to download the file

anyone could make it in one click ?

here is my code :


downloadAsCsv.addListener(new Button.ClickListener() {

			private static final long serialVersionUID = -672070155856317389L;
	
			public void buttonClick(ClickEvent event) {
		    	
		    	StreamSource streamSource = new StreamSource() {
	                 
					private static final long serialVersionUID = -4215537690206421969L;
		
					public InputStream getStream() {
		           
		                StringBuilder stringBuilder = new StringBuilder();   
		                stringBuilder.append(KmFunctionalConstants.FIRSTNAME);
		                stringBuilder.append(KmTechnicalConstants.COMMA);
		                stringBuilder.append(KmFunctionalConstants.LASTNAME);
		                stringBuilder.append(KmTechnicalConstants.COMMA);
		                stringBuilder.append(KmFunctionalConstants.ROLE);
		                stringBuilder.append(KmTechnicalConstants.COMMA);
		                stringBuilder.append(KmFunctionalConstants.MAIL);
		                stringBuilder.append(KmTechnicalConstants.BACK_LINE);
		        
		               for (MembershipsEmail memberships : membershipsList) {
		            	   stringBuilder.append(memberships.getFirstName());
		            	   stringBuilder.append(KmTechnicalConstants.COMMA);
		            	   stringBuilder.append(memberships.getLastName());
		            	   stringBuilder.append(KmTechnicalConstants.COMMA);
		            	   stringBuilder.append(KmGroupsUtils.getRoleFromSiteRole(memberships.getRole()));
		            	   stringBuilder.append(KmTechnicalConstants.COMMA);
		            	   stringBuilder.append(memberships.getEmail());
		                   stringBuilder.append(KmTechnicalConstants.BACK_LINE);
		               }
		                 
		               return new ByteArrayInputStream(stringBuilder.toString().getBytes());
		            }
	            };                 
	            applicationWindow.open(new DownloadResource(streamSource, getSiteShortNameSelected() 
	           		 + KmFunctionalConstants.CSV_NAME, event.getButton().getApplication()));
		    }
		});

public class DownloadResource extends StreamResource {
	
	private static final long serialVersionUID = -8920809153787806424L;
	private final String filename;

    public DownloadResource(StreamSource streamSource, String name,
            Application application) {
        super(streamSource, name, application);

        filename = name;
    }

    @Override
    public DownloadStream getStream() {
        DownloadStream stream = new DownloadStream(getStreamSource().getStream(), "text/csv", filename);

        stream.setParameter("Content-Disposition", "attachment;filename=" + filename);
        return stream;
   }

}

Unfortunately not; those warnings are out of the developers control (otherwise, what would be the point in having them?). The only thing that helps is to open the resource in the same window as the application itself, which you are already doing. So, nothing you can do (that I know of), sorry.

Thank you Thomas

Anyway I am trying to do it with the ActiveLink addon, if it works I post code here