data[0]: the URL to download the file from. @author tomyeh @since 3.0.0
53545556575859
*/ public static void save(Media media, String flnm) { final Desktop desktop = Executions.getCurrent().getDesktop(); ((WebAppCtrl)desktop.getWebApp()) .getUiEngine().addResponse( new AuDownload(new DownloadURL(media, flnm))); //Bug 2114380 }
76777879808182838485
/* * We cant use FileDownload.save(<url>) as it creates a new url * where the resource can't be find so we have to create ourselves * the download request * */ Executions.getCurrent().addAuResponse(new AuDownload(jasperreport.getReportUrl())); URItext.setStyle("display: inline"); URIlink.setHref(jasperreport.getReportUrl()); } }