用ec做查询,页面总是出现正在提交.....
snowgxn
2008-02-15
RT
我的代码: 页面 <script type="text/javascript"> function queryProv(queryFormName,listFormName) { var queryForm=$(queryFormName); var queryPara={ "provinceC" : queryForm["provinceC"].value, "provinceE" : queryForm["provinceE"].value, "provinceCode" : queryForm["provinceCode"].value }; ECSideUtil.queryECForm(listFormName,queryPara,true); ECSideUtil.refresh(queryFormName); } </script> <form id="queryProvForm" name="queryProvForm"> <div style="height:20px"></div> <div style="float:left;width:100%"> <span>省份(中):</span><input type="text" name="provinceC" id="provinceC"> </div> <div style="float:left;width:100%"> <span>省份(英):</span><input type="text" name="provinceE" id="provinceE"> </div> <div style="float:left;width:100%"> <span>省份代码:</span><input type="text" name="provinceCode" id="provinceCode"> </div> <div style="float:left;width:100%"> <input type="button" value="查询" onclick="queryProv('queryProvForm','ec');"> </div> </form> <div style="height:20px"></div> <ec:table items="listProv" var="record" action="/cifit-web/query.do?method=doQuery" editable="true" title="省份列表" xlsFileName="省份列表.xls" csvFileName="省份列表.csv" width="700" listWidth="100%" height="280px" sortable="true" filterable="true" minHeight="200" useAjax="true" style="table-layout:fixed;"> <ec:row recordKey="${record.id}"> <ec:column width="80" property="provinceC" title="省份(中)"/> <ec:column width="120" property="provinceE" title="省份(英)" editable="false" /> <ec:column width="100" property="provinceCode" title="省份代码" filterable="false" /> </ec:row> </ec:table> Action public ActionForward doQuery(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { // TODO Auto-generated method stub System.out.println("来自页面的查询:"); Province prov = new Province(); prov = this.getProv(request); ProvinceServiceRemote serviceRemote; try { serviceRemote = (ProvinceServiceRemote)ContextUtil.getBean("province_remote"); List listProv = serviceRemote.listQuery(prov); request.setAttribute("listProv", listProv); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return mapping.findForward("listProv"); } |
|
snowgxn
2008-02-18
添加过滤就可以了... |
|
rocbond
2008-03-19
在ecside.js找到Me.findAjaxZoneAtClient,将false改为true
|
|
rocbond
2008-03-19
Struts2 中可以会遇到这个问题,用上面的方式去掉ajax解决
|
|
flysky9820000
2008-03-20
web.xml里过滤器的问题,你必须用例子里ecside自己的过滤器,不然就会出现你的问题
|