0

how to pass data between viewmodels

asked 2013-07-02 13:14:55 +0800

Yusuf gravatar image Yusuf
1

updated 2013-07-03 05:32:04 +0800

how to pass data between view models: I am trying to navigate from one zul page to another zul page using sendRedirect. I need to pass some value objects from first view model to another view model. Please give some suggestions on it. thanks.

delete flag offensive retag edit

Comments

1

Its a child-parent relationship? or anything else please explore your question.

sjoshi ( 2013-07-02 13:48:02 +0800 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-07-03 03:39:45 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

You can use GlobalCommand to communicate between different ViewModels. Please refer here

link publish delete flag offensive edit
0

answered 2013-07-03 05:56:00 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Look at this. Contains several examples both on MVC and MVVM for passing arguments

link publish delete flag offensive edit
0

answered 2013-07-03 06:55:28 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...

just like this..

Executions.getCurrent().sendRedirect(ZulFileCodeConstants.DOCUMENT_EDIT_URL+"?str="+str+"&str1="+str1+"&docAction=Edit");
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-07-02 13:14:55 +0800

Seen: 97 times

Last updated: Jul 03 '13

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