更新table记录时为什么ajax的"正在提交..."BAR一直没有消失,

jlle 2007-12-22
我在table中直接编辑数据,并提交时,左上角的"正在提交..."框一直没有消失,请问怎么处理呢,
我的代码如下:
<!--demofull.jsp代码-->
<%

String webapp=request.getContextPath();
TestData daoAction=new TestData();
String action=request.getParameter("action");
int result=0;
if("update".equalsIgnoreCase(action)){
result=daoAction.updateData(request);
}else if("delete".equalsIgnoreCase(action)){
daoAction.deleteData(request);
}else if("insert".equalsIgnoreCase(action)){
result=daoAction.insertData(request);
}
if(action!=null&&!"".equals(action)){
out.println(request.getAttribute(ECSideConstants.C_UPDATE_RESULT_CODE));
}
request.setAttribute("userRecords", daoAction.selectAllData(request));
%>
<body style="margin:15px;" onload="init()">

<ec:table  tableId="myForm" items="userRecords" var="recorduser1"

useAjax="true"
doPreload="false"

action="${pageContext.request.contextPath}/demofull.jsp"
updateAction="${pageContext.request.contextPath}/demofull.jsp?action=update"
deleteAction="${pageContext.request.contextPath}/demofull.jsp?action=delete" 
insertAction="${pageContext.request.contextPath}/demofull.jsp?action=insert" 


title="用户列表"

xlsFileName="用户列表.xls"
csvFileName="用户列表.csv"
minColWidth="80"
maxRowsExported="10000000"
pageSizeList="10,20,50,100,500,1000"
rowsDisplayed="10"

editable="true"

retrieveRowsCallback="process"
sortable="true"


generateScript="true"

resizeColWidth="true"

classic="false"

filterable="true"

width="100%"

height="277px"

minHeight="200" 


>

<ec:row recordKey="${recorduser1.userID}" rowId="rowid_${GLOBALROWCOUNT}" >
<ec:attribute>title="${recorduser1.userID}"</ec:attribute>
<ec:column width="50" property="_0" title="序号"  editable="false" resizeColWidth="false" >${GLOBALROWCOUNT}</ec:column>
<ec:column  property="userID" title="用户ID" />
<ec:column width="120" property="userName" title="用户名"  />
<ec:column width="100" property="passWord" title="密码"  />
<ec:column width="120" property="orgID" title="部门" />
<ec:column width="70" property="sex" title="性别"  />
<ec:column  width="70"  property="loginID" title="帐户"  style="#_EX: (VAR.userID>5&&VAR.userID<15)?'color:red':''" >

</ec:column>

</ec:row>

</ec:table>

在做update时,做如下处理:
public  int updateData(HttpServletRequest request){
int result= this.getBean(request).updateUserInfo(this.getRequestParameterMap(request));
if ( result>0 ){
request.setAttribute(ECSideConstants.C_UPDATE_RESULT_CODE, RequestUtil.successfulInfo(request));
}else{
request.setAttribute(ECSideConstants.C_UPDATE_RESULT_CODE, RequestUtil.failedInfo(request));
}
return result;
}
备注:我是采用ibatis+ecside2的用法,没有使用ecside2自带的dao方式处理
paradox 2008-03-22
我也发现有这个问题,有人能帮忙解决一下吗?
nlvivian 2008-03-24
useAjax="true" 这一个项目设置成false就可以了啊。。

但是我做增删存储操作的时候

也显示正在提交。而且不去后台不知道怎么解决
landc576 2010-05-10
tableId造成的,可以参考http://ecside.group.iteye.com/group/topic/4781的解决办法
Global site tag (gtag.js) - Google Analytics