Menu

#1004 Data binding problem in listfooter inside a nested listbox

3.0.5
closed-fixed
nobody
5
2011-02-22
2008-05-21
No

In a nested listbox, as in the following example, data binding doesn't seems not to work. The problem happens only if using a model.

In the following example I expect a value in the footer of the nested list, but is bull.
A label outside the nested listbox report the correct value.

<?xml version="1.0" encoding="UTF-8"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
<window title="My First Window" border="normal" width="200px">
<zscript>
Vector a = new Vector();

Vector aa = new Vector();
aa.add("AA");
aa.add("AB");

Vector ba = new Vector();
ba.add("AA");
ba.add("AB");

a.add(aa);
a.add(ba);
</zscript>
<listbox model="@{a}">
<listitem self="@{each=r}" value="@{r}">
<listcell label="@{r}"/>
<listcell>
<listbox model="@{r}">
<listitem self="@{each=rr}" value="@{rr}" label="@{rr}"/>
<listfoot>
<listfooter label="@{r}"/>
</listfoot>
</listbox>
</listcell>
</listitem>

<listfoot>
<listfooter label="A"/>
<listfooter label="@{a}"/>
</listfoot>
</listbox>
</window>

Discussion

  • Henri Chen

    Henri Chen - 2011-02-22

    Fixed since Feb. 22, 2011.(ZK5 also fixed)

     
  • Henri Chen

    Henri Chen - 2011-02-22
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB