2

How to Update Model Window Data [closed]

asked 2012-10-01 12:56:34 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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

	}

2- parent.zul file ViewModelClass is ParentViewModel.java And
child.zul file ViewModellass is ChildViewModel.java

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?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-01-22 12:12:07

1 Reply

Sort by ยป oldest newest

answered 2013-01-22 12:06:18 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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
link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2012-10-01 12:56:34 +0800

Seen: 64 times

Last updated: Jan 22 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More