-
FEATURED COMPONENTS
First time here? Check out the FAQ!
with ZK8RC,
I can call class constructor in ${} expressions like
<label value="${Boolean(true)}"/>
but can not in binding expressions like
<label value="@load((Boolean(true)))"/>
I tried various forms of constructor but all gave error or no effects.
Any suggestions ?
You have to use the core methods.
First of all declare your core taglib by :
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
Then you can use the following :
@load(c:new1('java.lang.Boolean', 'true'))
Now ZK does autocasting of the Boolean so you can do just like this(without the whole core method's) :
@load(true)
Greetz chill.
Thanks for testing ZK 8. In general this should work when EL 3.0 support is enabled:
this issue is currently under investigation http://tracker.zkoss.org/browse/ZK-2808 please follow the status there.
Robert
Asked: 2015-06-30 01:42:06 +0800
Seen: 24 times
Last updated: Jul 01 '15
Problem binding values to a composite component
How to access static member field of a class in zul without zscript
How can i load a constant in .zul
MVVM Validator: class not found ? [closed]
MVVM tab box - delay @load until tab pane displayed?
mvvm, load or save with after or before for seach command
how to fire an event when a variable value loaded through VM
is there any event trigger from zk component on binding ?
ZK team plans to dispose of Composer EventQueues no longer in scope? [closed]