Monday, May 26, 2014

ZK Include : How to pass and get parameter with zk include

Index.zul

In above code you can check it pass argument with URL here test is argument name and value=5


In this page we used ${param.test} to get the parameter passed in index.zul HeaderComposer.java
ANOTHER WAY TO PASS THE ARGUMENT WITH INCLUDE

Another way to pass Argument and And get it back
Let Us suppose you included menu_component.zul in parent.zul file

Now in menu_component.zul you can get parameter like this

Now use data anywhere in zul and pass value to View Model

Tuesday, May 13, 2014

How to Notify Single Item or Record or Single Column from ZK ListBox Not Whole ListBox?

Here is Demo code for this


ZUL file
Please share if you found any better solution

Wednesday, May 7, 2014

ZK SelectorComposer and GenericForwardComposer

First we can check the ZK documentation what all written in ZK? See below

SelectorComposer
It supports the autowiring based on Java annotation and a CSS3-based selector. If you don't know which one to use, use SelectorComposer.
GenericForwardComposer
It supports the autowiring based on naming convention. You don't need to specify annotations explicitly, but it is error-prone if it is used improperly.

As they clearly mentioned If you don't know which one to use, use SelectorComposer. I will also suggest same if you are using MVC framework