Sorry, when creatief components. See here : http://books.zkoss.org/wiki/ZUMLReference/ELExpressions/Implicit_Objects/arg
chillworld ( 2014-01-15 17:48:00 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am novice in ZK.
I use very old zk framework version(legacy project).
I render zk page so:
Executions.createComponents("/myZul.zul", null, null))
I need to pass parameter to zul. And if parameter is true I need render checkbox and otherwise - not on myZul.zul
I need something like this on zul:
<zk if="${parameter}">
<checkbox id="my_id" label="my checkbox" />
</zk>
How to pass parameter
it from java code?
You have to add parameter to your call in a map:
Map map = new HashMap();
map.put("person_id", person_id);
Window win = (Window) Executions.createComponents(
"/userDetails.zul", null, map);
win.doModal();
In the Detail view you can read the Parameter with following code:
Map args = Executions.getCurrent().getArg();
personID = Long.parseLong(args.get("person_id").toString());
Sorry, when creatief components. See here : http://books.zkoss.org/wiki/ZUMLReference/ELExpressions/Implicit_Objects/arg
chillworld ( 2014-01-15 17:48:00 +0800 )editAsked: 2014-01-09 18:34:13 +0800
Seen: 38 times
Last updated: Jan 14 '14