If condition in ZK5
13 Dec 2011 14:20:29 GMT
15 Dec 2011 17:42:02 GMT
15 Dec 2011 17:42:02 GMT
If memory serves, Expression Language (EL) doesn't support the contains method. You could try to create your own custom function in a taglib and use it that way but that sure seems like a lot of work. Maybe someone else here can correct me.
A couple of alternatives come to mind:
1) Hook your code up to a controller and iterate through your list, adding the labels at runtime from Java
2) Use databinding and a type converter.
For example, instead of displaying text you could display a graphic based on the value
Hope that helps,
Todd
ZK - Open Source Ajax Java Framework
Hi ,
I went thru some docs on ZK5 on if unless..
but wht if i want to compare string in ZUL file how to use if loop?
can anyone help me in this regard..
My scenario below..
<label value="${inputdatalist}" if="${each.name.contains('stringdatainlist')}"/>
the above line is not working for me...
thanks in advance