-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.0
-
Security Level: Jimmy
-
None
adding the value to the middle of the ListModelList will append the new item to the end when rendered.
<zk xmlns:x="xhtml" xmlns:sh="shadow"> <zscript><![CDATA[ ListModelList model = new ListModelList(); model.add("1"); model.add("2"); model.add("3"); model.add("4"); ]]></zscript> <div id="bind" apply="org.zkoss.bind.BindComposer" > <button label="insert" onClick='model.add(2, "2.5");'/> <sh:forEach items="@load(model)" var="item"> <div> <label value="@init(item)"/> </div> </sh:forEach> </div> </zk>