0

How we can pass to VM a lot of strings?

asked 2015-11-05 15:05:05 +0800

edwpotapoff gravatar image edwpotapoff
43 1

The idea is define all messages in View, but pass all strings via @init('...', arg1='s1', arg2='s2'...)" in not convenient if we have a lot of long strings.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-09 09:41:41 +0800

Darksu gravatar image Darksu
1991 1 4

Hello edwpotapoff,

So based on your question we have the following scenarios:

Case 1: Pass arguments in the init

http://books.zkoss.org/wiki/ZKDeveloper'sReference/MVVM/Syntax/Data_Binding/@init

Case 2: Using the Executions Interface

http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zk/ui/Execution.html

Best Regards,

Darksu

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: 2015-11-05 15:05:05 +0800

Seen: 27 times

Last updated: Nov 09 '15

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