zk列表中,想让第一列显示序号,
<listbox model="@{controller.pageModel}" >
<listhead sizable="true">
<listheader label="${c:l('label.no') }" sort="auto(resume.serialNumber)" onSort="controller.onSort(event)"></listheader>
<listheader label="${c:l('candidate.resume.searialnumber') }" sort="auto(resume.serialNumber)" onSort="controller.onSort(event)"></listheader>
</listhead>
<listitem self="@{each=rec}" value="@{rec}">
<listcell>
<label value="@{forEachStatus.index }" />
</listcell>
<listcell>
<label value="@{rec.resume.serialNumber}" />
</listcell>
</listitem>
</listbox>
<label value="@{forEachStatus.index }" />为什么不显示数据,使用时需要注意哪些问题吗?
如果这种方法行不通可以有其他方法吗
ZK