1
<tabpanel>
<listbox id="usersList" sizedByContent="true" span="true" model="@{users}">
<listhead>
<listheader label="User Name"/>
<listheader label="gender"/>
</listhead>
<listitem self="@{each=users}">
<listcell label="@{user.userName}"/>
<listcell label="@{user.gender}"/>
</listitem>
</listbox>
</tabpanel>
而在Java方面:我有ArrayList的用戶,如果點擊提交後,添加到這個列表中的用戶....但我不知道如何在UI端顯示出來。 ...任何人都可以幫助我嗎?非常感謝....即時新聞與ZK
你已經在ZUL中聲明你的視圖模型?別忘了在前面使用viewmodel的id,你可以像使用zscript風格一樣使用它 – chillworld