-
Bug
-
Resolution: Duplicate
-
Major
-
9.0.0.1, 9.5.0.1
-
Security Level: Jimmy
Steps to Reproduce
<zk> <zscript><![CDATA[ ListModelList model = new ListModelList(); int size = model.size(); public void addModelItem() { size++; model.add("item-" + size); lh.setLabel("" + size); lb.setValue("" + size); } ]]></zscript> <div> <button label="Add Entry" onClick="addModelItem()"/> <label id="lb" value="${size}"/> <listbox model="${model}" width="200px"> <listhead> <listheader id="lh" label="${size}"/> </listhead> </listbox> </div> </zk>
Click the "Add Entry" button
Current Result
after the first click -> the listheader label doesn't update
for the second and subsequent clicks this works
Expected Result
labels get updated
Debug Information
the list model is initially empty
if it contains at least 1 initial element, the listheader label will update correctly