[ECSide] 导出文件时也不报错,也不是提示保存、打开文件什么的,然后就没反应了。大家碰到过这样的问题吗?

lanniu1976 2007-08-09
环境是struts2。别的功能还都正常.
<ec:table items="recordList" var="record" retrieveRowsCallback="limit"
action="../role/roleView.action"
updateAction="../role/roleSave.action"
insertAction="../role/roleAdd.action"
deleteAction="../role/roleDelete.action"
title="角色列表"
xlsFileName="角色列表.xls"
csvFileName="角色列表.csv"
pdfFileName="角色列表.pdf"
width="100%" listWidth="100%" height="auto"
sortable="true" useAjax="false"
editable="true"
batchUpdate="true"
resizeColWidth="false"
minHeight="445"
>
<ec:row  recordKey="${record.id}" rowId="rowid_${GLOBALROWCOUNT}">
<ec:column width="50" property="_0" title="行号" 
value="${GLOBALROWCOUNT}" editable="false" resizeColWidth="false"/>
<ec:column width="50" property="seq" title="序号" editable="true" />
<ec:column width="150" property="name" title="角色名称"  editable="true"/>
<ec:column width="300" property="descn" title="角色描述" editable="true"/>
</ec:row>
</ec:table>
lanniu1976 2007-08-09
跟踪至XlsView 的 afterBody ,发现这段代码,好奇怪哦?
..........
}finally{
wb=null;
sheet=null;
outputStream=null;
}
        return outputStream;
lanniu1976 2007-08-09
又跟踪至TableModelImpl的getViewData ,发现这段代码,
..............
            if (!exportHandler.getCurrentExport().getView().equals(TableConstants.VIEW_PRINT) ){
            return "";

查找TableConstants.VIEW_PRINT的值是"print",可是exportHandler.getCurrentExport().getView()的值好像永远不等于"print"哦,同样迷惑.........ing!!!!
lanniu1976 2007-08-18
不知道这是不是2.0的bug?
Global site tag (gtag.js) - Google Analytics