Showing posts with label pass. Show all posts
Showing posts with label pass. Show all posts

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

Wednesday, May 29, 2013

ZK Pass argument from ZUL page to ViewModel Class

Today i was looking on the ZK Forum and i saw someone have issue to pass argument from ZUL page to a ViewModel method here i am giving a example for that ,Let us suppose you want to pass instance from ZUL to a method you can code like this..

And the action method in View Model class
For more information you can check this question Pass argument in ZK Zul page to ViewModel class