[ECSide] Ecside 无save button delete

huangmoboy 2009-11-02
<ec:table  width="100%" tableId="test" classic="false"
locale="zh_CN" items="employee" var="list" toolbarContent="navigation|pagejump |pagesize|save add del|export|extend|status"
rowsDisplayed="10" retrieveRowsCallback="limit" nearPageNum="3"
action="courseCatalogAction.do?method=queryCourseList"
updateAction="courseCatalogAction.do?method=delete"
insertAction="courseCatalogAction.do?method=delete"
deleteAction="courseCatalogAction.do?method=delete"
useAjax="true">
<ec:row recordKey="${id}" ondblclick="alert('this is dblclick');"
style="height:30px">
<ec:column width="120" property="__8" cellValue=""  title=""
sortable="true" ></ec:column>
<ec:column property="salary" calc="total" calcTitle="總計"
calcSpan="2"></ec:column>
<ec:column property="_0" headerCell="checkbox"
cellName="checkbox" cell="checkbox" value="${list.id}" />
<ec:column property="_1" title="radio" cellName="radio"
cell="radiobox" value="${list.id}" />
<ec:column width="50" property="id" title="序號" editable="fasle" />
<ec:column width="120" property="depert" title="Depertment"
sortable="true" />
<ec:column width="100" headerStyle="cursor:hand;"
property="email" title="Email" tipTitle="${list.email}"
sortable="true" />
<ec:column width="120" property="salary" style="text-align:right"
title="Salary" sortable="true" />
<ec:column width="120" property="date" title="Date"
format="yyyy-MM-dd hh:mm" cell="date" sortable="true" />
<ec:column property="_8" title="button">
<input type="button" value="button"
onclick="alert('${list.id}')" />
</ec:column>
</ec:row>
</ec:table>
没有save delete update的button呢?只有refresh

另外ecside 本身就自动生成form里,我在ec:table 外又套了个form 然后翻页 排序 就报js错误, 是不是ec table 就不能包含在form 里面
lgdlgd 2009-11-02
不要save等button,在下面把相应内容去除
toolbarContent="navigation|pagejump |pagesize|save add del|export|extend|status"
ectable是不能包含在FORM里面
gaozengguang 2009-12-02
没有那些button是因为你的一个editable属性没有设置;添加edidable=true即可。详情请参考:fins的文章。
Global site tag (gtag.js) - Google Analytics