-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, there. I'm new to ZK. I'd like to know whether it is possible to use @composer inside EL expressions of the sort: <label value="${composer.property == 1 ? 'its a 1' : 'its not a 1'}"/>
Cheers!
I think You want this:EL Expression
Also see here :http://books.zkoss.org/wiki/ZKDeveloper%27sReference/MVVM/DataBinding/ELExpression
I think the answer has more to do with JSTL than ZK. In JSTL autoboxing works like this with comparations:
null null value. -
123 int value. java.lang.Long
123.00 real value. java.lang.Double
"string" ou 'string' string. java.lang.String
true or false boolean. java.lang.Boolean
So, if your property is an Integer, comparison will be always false, since new Long(1) is never equals to Integer(1).
Asked: 2014-06-14 10:43:16 +0800
Seen: 24 times
Last updated: Jun 16 '14
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate