-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All!
After moved my project form ZK7 to ZK8 I get this error every time the page is loaded:
Failed to parse the expression [${.evmailSubjectBeans}]
It's caused by expression in "visible" attribute:
<chosenbox id="esuChosenbox"
model="@load(ivm.evmailsubjects)"
selectedObjects="@bind(ivm.inventory.evmailSubjectBeansEntries)"
visible="@bind(!ivm.inventory.evmailSubjectBeansEntries.isEmpty())"/>
I found that problem in @DependsOn annotation on getter:
@DependsOn("evmailSubjectBeans")
public Collection getEvmailSubjectBeansEntries()
...
How can I fix this? It was working while the project used ZK7 and it's working without @DependsOn, but the annotation is needed for other functionality.
Thanks in advance!
http://tracker.zkoss.org/browse/ZK-3107 fixed in 8.0.2
Try:
visible="@bind(!ivm.inventory.getEvmailSubjectBeansEntries().isEmpty())"/>
Asked: 2015-12-02 13:23:04 +0800
Seen: 62 times
Last updated: Apr 07 '16
Use of Enum in zul and static import with ZK 8
How to control selectAll() feature in a Listbox with multiple=true and checkmark=true
ZK8 Wizard Series: Part 2 now released!
Faster And Lighter, The Performance Test On ZK8
org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
How To Check Dirty Status in ZK8?
I think you need to use
chillworld ( 2015-12-02 14:23:23 +0800 )editnot
instead of!
Nope, the same error. It's not connected with expression syntax, other "visible" attributes with similar logic and syntax works fine. The problem in @DependsOn annotation and apparently how it's translated on page in new ZK8
KMaria ( 2015-12-02 14:47:02 +0800 )editis there a setter
chillworld ( 2015-12-02 15:14:49 +0800 )editsetEvmailSubjectBeans
in the same class as whete theDependsOn
is?Sure,
KMaria ( 2015-12-02 15:33:42 +0800 )editgetEvmailSubjectBeans
andsetEvmailSubjectBeans
both are in placemaybe bug, if you could create a sample in fiddle where you have same behavior, you could post it on bugtraker
chillworld ( 2015-12-02 15:48:42 +0800 )edit