Thursday, September 26, 2013

ZK:- Get Instance of any ZUL component in ViewModel

I am using ZK MVVM Architecture . Today i got problem on Button click i want Listbox instance in ViewModel or my Java class so i found a solution which is provided by ZK itself.
Let us suppose you called below method on button click


If you will get here i used query("Pass Component Name ") method and it will return the object of that component. But here can be problem if more than one type of compoennt defined in page will see how to resolve that also.

Thursday, September 19, 2013

How to concat two variable in ZUL?

One of my friend come to me and told i will want to concatenation two variable in ZUL and show it user and asked is this possible i am also not totally 100% confident about it but when i browsed ZK Official Documentation i found some helpful information in this and when i tried this i got the solution for example please check below code

ZUL Code for this

br/> And View have the concatenation method and two variable which defined in zul file

Tuesday, September 10, 2013

ZK MVC Upload Example

The ZUL file code for this will be


And the Java Code