Wednesday 14 May 2014

el expression in zk .

Some EL characters are illegal in XML attribute or ZK annotation, you should replace them with other EL operators. 


CharacterReplacement
=eq
 !=ne
&&and
<lt
<=le
>gt
>=ge


For example:

<label value="@bind(vm.age lt 18?'true':'false')"/>
<image src="@load(vm.picture ne null ? 'images/'.concat(vm.picture) : 'images/NoImage.png')"/>

No comments:

Post a Comment