ZK ZUL ZKScript EL forEach 簡單範例
<?xml version="1.0" encoding="UTF-8"?>
<zk>
<window title="Vote" width="400px" border="normal" closable="true" sizable="true">
Do you like money ?
<label id="lbl"/>
<separator/>
<button label="Yes" onClick="lbl.value = self.label"/>
<button label="No" onClick="lbl.value = self.label"/>
</window>
<separator/>
<window title="使用EL表達式對 id 進行引用" width="400px" height="100px" border="normal" closable="true" sizable="true" >
<textbox id="txtbox" value="Van"/>
<label value="${txtbox.value}"/>
</window>
<separator/>
<window title="組件 forEach 應用" width="400px" height="200px" border="normal" closable="true" sizable="true" >
<zscript>
number = new String[]{"One","Two","Three","Four","Five"};
</zscript>
<listbox width="100px">
<listitem label="${each}" forEach="${number}"/>
</listbox>
</window>
</zk>