-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.0
-
Security Level: Jimmy
-
None
-
ZK 8.0.1
the attached example shows 2 problems:
1. replacing the elements in the listmodel does not clear the details labels rendered with the "detailsLabel" template, it simply appends a new item in the UI even though the model was cleared before adding the new item.
2. removing the only element in the model, and trying add it again causes a NullPointerException. when adding the new element:
java.lang.NullPointerException at org.zkoss.zk.ui.HtmlShadowElement.setShadowHost(HtmlShadowElement.java:257) at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:112) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:825) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:801) at org.zkoss.zk.ui.impl.UiEngineImpl.access$800(UiEngineImpl.java:128) at org.zkoss.zk.ui.impl.UiEngineImpl$TemplateImpl.create(UiEngineImpl.java:2275) at org.zkoss.zuti.zul.ForEachRenderer.render(ForEachRenderer.java:68) at org.zkoss.zuti.zul.ForEachListDataListener.renderModelData(ForEachListDataListener.java:120) at org.zkoss.zuti.zul.ForEachListDataListener.onListModelDataChange(ForEachListDataListener.java:68) at org.zkoss.zuti.zul.ForEachListDataListener.onChange(ForEachListDataListener.java:45) at org.zkoss.zul.AbstractListModel.fireEvent(AbstractListModel.java:61) at org.zkoss.zul.ListModelList.add(ListModelList.java:183)