0

ZK6 - Pass viewmodel to new window [closed]

asked 2012-03-13 21:21:22 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

Hi *,

I have a main window with my viewmodel.

Now, in a event/command on my viewmodel, which creates a a new window with Executions.createComponents.
And I want to pass the current viewmodel instance to my new created window.
So in my new created window zul file I can have <button onClick=@command('doSomething')/>, and the doSomething is a command method on my viewmodel.

Is this possible?

Thanks,
Madruga

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-02-12 10:03:47

1 Reply

Sort by ยป oldest newest

answered 2012-03-13 21:34:22 +0800

pdifeo gravatar image pdifeo
96

updated 2012-03-13 21:35:13 +0800

Hi,

view the sample at

http://zkfiddle.org/sample/1mshmaq/11-File-Upload-and-communication-with-modal-window

Or you can use @global-command

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2012-03-13 21:21:22 +0800

Seen: 206 times

Last updated: Mar 16 '12

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