当前位置:编程学习 > JAVA >>

懂ZK的过来帮我一下吧~~ZK的Listbox组件设置两个中间变量

各位懂ZK技术的帮忙看一下~~~最近在边学习ZK边做项目.......
问题是这样的:
我现在有一个查询页面,查询出来的结果用Listbox显示,有个栏位的参数绑定是这样的
<template name="model" var="rec">
    <listitem value="@load(rec)">
          <listcell>
              <textbox width="80px" value="@load(rec.entity.test01DO.test02DO.name)"/>
         </listcell>
         ......还有其他的
    </listitem>
</template>
页面上显示成功,但是我后台有些操作会找不到这么多层里的这个参数name,主要问题是页面上绑定的DO比较多层会得不到。有没有办法能让这个value值@load里面不绑定到这么多层,如何再定义一个中间变量,请大侠们帮帮忙~~~~  ZK ListBox 中间变量 --------------------编程问答-------------------- 有没有办法实现,给个意见也好。。。。。。 --------------------编程问答-------------------- 求解~~~~~ --------------------编程问答-------------------- 还是没人会吗。。。。。。即使不能这么实现也可以告诉我一下啊 --------------------编程问答-------------------- 后台查询的 list数据data  listbox.setModel(new ListModelList<OBJECT>(data)) 

然后页面用
   <template name="model">
<listitem>
<listcell label="${each.a}"></listcell>
<listcell label="${each.b}"></listcell>
<listcell>$<label value="${each.v}" /></listcell>
...
                                  ...

</listitem>

</template>





或者后台查询的数据 data

<listbox id="ListBox" mold="paging" pageSize="5" vflex="2" checkmark="true"
model="@{userWindow$composer.users}"  pagingPosition="bottom">
<listhead sizable="true">
<listheader label="用户ID" sort="auto(id)" />
<listheader label="用户名称" sort="auto(name)" />
</listhead>

<listitem self="@{each=member}" >
<listcell label="@{member.id}" />
<listcell label="@{member.name}" />
</listitem>

</listbox>
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,