0

Is this possible Zk each can work with contains ?

asked 2014-11-16 12:40:22 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

updated 2014-11-16 12:42:49 +0800

I have a situation where i am getting String in ZUl page and in same zul page i will want to check if this String contains some Sub String Display that otherwise do not display it how can i achieve it?

Eg. We can do like this

    <zk if="${each eq 'Paid'}">
    <headerpanel status="Paid"></headerpanel>
    </zk>
    <zk if="${each != '' || 'Paid' || 'Cancelled'}">
    <label value="${each}"></label>
    </zk>

Now how can i check the Contains with this each?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-16 16:10:18 +0800

Darksu gravatar image Darksu
1991 1 4

Hello sjoshi,

You could implement your functionality using taglibs.

Please refer to the following url for more information:

http://books.zkoss.org/wiki/ZUMLReference/ZUML/ProcessingInstructions/taglib

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-11-16 12:40:22 +0800

Seen: 13 times

Last updated: Nov 16 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More