<ec:table showExports="false" items="items" var="item" tableId="tableId" action="XXX.do?method=..." showPagination="false" form="formName" sortable="true">
showPagination="false" : 不分页
=========隐藏导出图标另按钮导出如下:===========================
1、设置 showExports="false"
2、---设置隐藏域-----
<input type="hidden" name="ec_eti" />
<input type="hidden" name="tableId_ev" />
<input type="hidden" name="tableId_efn" />
3、--export标签-----
<ec:exportXls fileName="ExportFileName.xls" tooltip="EXPORT EXCEL" />
4、<input type='button' text="导出报表" οnclick='exportExcel()' />
5、
function exportExcel() {
document.forms.formName.ec_eti.value='tableId';
document.forms.formName.tableId_ev.value='xls';
document.forms.formName.tableId_efn.value='ExportFileName.xls';
document.forms.formName.setAttribute('action','XXX.do?method=...');
document.forms.formName.setAttribute('method','post');
document.forms.formName.submit();
}
PS : 做别的操作前先清空:
function clearExport(){
document.forms[0].ec_eti.value = '';
document.forms[0].tableId_efn.value = '';
document.forms[0].tableId_ev.value = '';
}