0

Is there any way to set request attributes in a ViewModel and retrieve it from another one by @ExecutionArgParam?

asked 2018-06-29 09:59:36 +0800

matthung gravatar image matthung
3 2

I knew I can pass parameters through self-defined attributes of <include> in ZUML, or by Executions.createComponents("mypage.zul", args) in ViewModel command method, but I want to know if there any way to set parameters into request attributes in ViewModel and retrieve it from another ViewModei's @Init method via @ExecutionArgParam?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-17 17:21:55 +0800

hawk gravatar image hawk
2225 1 5
http://hawkphoenix.blogsp... ZK Team

You can pass through a dynamic attribute of <apply> like:

<apply templateURI="@load(vm.templateName)" myparam="@load(vm.param)"/>

Inside the template, bind it with the attribute name like:

<label value="@load(myparam)"/>

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

RSS

Stats

Asked: 2018-06-29 09:59:36 +0800

Seen: 9 times

Last updated: 2 days ago

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