callback中window.open后弹出文件下载框却立马消失了,网上找到的解决办法,记录下..
function exportList(txtOrExcel){ dwr.engine.setAsync(false); ClientGroupMgmt.exportUsers(listId_exp, function(fileName) { window.open("<%=request.getContextPath()%>/common/ftpdownloadByFileName.jsf?fileName="+fileName); }); dwr.engine.setAsync(true);
前后加上dwr.engine.setAsync(...);