-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi I have a Model Window Inside a ZUl Page Some How like this is the scenario.
1-I have a parent.zul page in which i have created a button when some one clicking that button i am executing this Code....
public void createCalendarModel(Component comp, Map args) { Executions.getCurrent().createComponents("/child.zul", comp, args);// args is data for the ModelWindow }
Now issue is that let us suppose in ModelWindow(child.zul ) page user clicked on some button and data is updated now i have to display updated data in same viewModel.
I cannot call same code written above because it will create model Window component again which i do not want i will want to update the args value only ?
How can i achieve it?
We can use below code
Binder bind = (Binder) view.getParent().getAttribute("binder");
if (bind == null)
return;
bind.postCommand("Command Name of parent", params);//params pass parameter as a Map
Asked: 2012-10-01 12:56:34 +0800
Seen: 64 times
Last updated: Jan 22 '13