<window apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('com.test.labelTest')">
<template <!--model = "@bind(vm.allLabelSets)" some thing like this --> >
<label value="@load(each.label1)" />
<label value="@load(each.label2)" />
<label value="@load(each.label3)" />
</template>
</window>
how can we use template to iterate over a list
without using any of gridModel,treeModel
?
Try this below code
You have to use
children
attribute