mardi 5 septembre 2017

How to get a Listbox in Listbox in java when using zk?

```

<listbox id="lbSnList" rows="10" fixedLayout="false" width="100%"  model="@{uploadSnVo}" >
    <listitem self="@{each=SN}"  style="@{SN.BACKGROUND}">
        <listcell label="@{SN.SERIAL_NO}" />
        <listcell>
            <listbox id = "lbProduct"  hflex="1" mold="select"  selectedItem="@{SN.PRODUCT}">
                <listitem  forEach="${snProductList}" label="${each.name}"  value="${each.value}" />`enter code here`
            </listbox> 
        </listcell>
        <listcell>
           <checkbox id="cbCid" checked="@{SN.CH_GFLAG}" disabled="true" />
        </listcell>
    </listitem>
</listbox>

I want to set lbProduct independent when they are not same. I know that this code
page.setAttribute("snProductList", rmProductList); ```
can set it,but only when they all same.

How can I set them independent in java code when they are not same?




Aucun commentaire:

Enregistrer un commentaire