-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello Everyone,
In the below zul, i have written three zk if statements for checking the required value should not be blank, Case and Folder.
<zk>
<window apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('com.test.TestViewModel')">
<listbox emptyMessage="No Rows Found"
model="@bind(vm.testModel)" width="100%">
<template name="model">
<listitem>
<zk if="${each != ' '}">
<zk if="${each != 'Case'}">
<zk if="${each != 'Folder'}">
<label value="${each}" />
</zk>
</zk>
</zk>
</listitem>
</template>
</listbox>
</window>
</zk>
Is it possible that i can include these three conditions in one zk if statement instead of three zk if.
<listcell if="${myBean.noFlag !='true' and myBean.noFlag !='false'}" visible="true">
<label value=" " />
</listcell>
Thanks for your reply but.
I tried with
if="${each != ' ' } && ${each != 'Case'} && ${each != 'Folder'}">
and
if="${each != ' ' } && each != 'Case' && each != 'Folder'}">
But org.xml.sax.SAXParseException is coming with 'The entity name must immediately follow the '&' in the entity reference.' message.
OOhk...I think the symbolic form doesn't work...
try using "and","or" instead of "&&" and "||" symbols.
if="${each != ' ' } and each != 'Case' and each != 'Folder'}">
Asked: 2013-07-08 08:25:12 +0800
Seen: 226 times
Last updated: Aug 30 '13
Do not update to ZK Studio 2.0
Catch Server 503 Error - Or Catch Stale Page
how to save spreadsheet data into postgres database?
One controller file with multiple zul file
Why am I getting authentication error for ZK studio activation?
How can i make Tomcat (with virtual hosts) to parse the zul page in subfolders?