Hi,
where does the files to be downloaded come from? how do you access them inside your portlet?
Have a look at [url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuite8_ga/My_webMethods_and_Task_Engine/8-0-SP1_CAF_and_MWS_Java_API_Reference/com/webmethods/caf/faces/bean/SimpleFileExportBean.html[/url] for details on how you can use the SimpleFileExportBean.
Additionally, the button (or icon) you use to trigger the download of the file/s must not be an “async” button. And, you have to add an action listener to that button to re-enable the buttons in the form after the download is finished. You could add this snippet in an Script Block at the end of the page:
Event.observe( window, 'load', function() {
CAF.model('#activePageBean.clientIds['downloadButton']}').addActionListener(function(id) {Form.enableButtons(document.body);});
});
Hope this is clear enough and helps,
Javier
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine