Most of time in ZK MVVM framework we used @Command to capture the event. But sometime we need to capture which event is fired by user so on that case we can use below code
This blog is dedicated to ZK Framework which is a Ajax based framework and you can make application with the help of MVC and MVVM Framework.
Monday, January 27, 2014
Monday, January 13, 2014
How to enable bilingual support in Zk Framework?
Here is the demo code how you can change the language in zk project in one shot.
Zk Supports lots of language like Hindi,English,French etc. More information you can check ZK framework official website
Thursday, November 7, 2013
How to call Simple javascript function in ZK ?
Lots of time developer have a issue how we can call a simple Java Script function in ZK framework .Let Us suppose we have a JavaScript function doSomething() now we have to call this function on some event ,let us suppose below code.
1-Declare below line in your ZUL(Top of the page)
2-Here i called a JavaScript function on Window onClose event
3-Write below JavaScript
1-Declare below line in your ZUL(Top of the page)
2-Here i called a JavaScript function on Window onClose event
3-Write below JavaScript
Friday, October 25, 2013
ZK How to hide Calendar box from Calendar Component?
Here issue is that i want to show date like DD/MM/YYYY order in zk textbox but here i do not want to show the calendar or we can say i do not want to give freedom to choose date from From zk Calendar how we can resolve this issue ?
Here we can say we have two option
1-We can write a Type Converter class and use in label you can see example here Databinding-with-TypeConverter-sample
2-There is another option, use datebox with buttonVisible="false" attribute.
Here we can say we have two option
1-We can write a Type Converter class and use in label you can see example here Databinding-with-TypeConverter-sample
2-There is another option, use datebox with buttonVisible="false" attribute.
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.
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
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
And the Java Code
Subscribe to:
Posts (Atom)