0

ExecutionArgParam possible parameters java types

asked 2016-03-09 14:37:48 +0800

Morena gravatar image Morena
9 1

Hi and good morning!

I have a question:

Which kind of java type is possible to send via "ExecutionArgParam" ? The usage I need is similar the example below: But I'd like to send String[] instead of String. Someone know if its possible?

@Init public void init(@ExecutionArgParam("arg1") String arg1){ this.arg1 = arg1; }

Thank you in advance Morena

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2016-03-09 16:21:12 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

Hello Morena!

Actually i was not able to find any kind of documentation about the supported types BUT clearly it supports more than a simple String value.

<zscript><![CDATA[
    String[] arg1 = new String[] {"one", "two"};
]]></zscript>
<include arg1="${arg1}" src="included.zul" />

and

@ExecutionArgParam("arg1") String[] arg1

If you pass an array of Strings and you map it correctly, then you will receive an array of String as expected.

Gio

link publish delete flag offensive edit
Your reply
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: 2016-03-09 14:37:48 +0800

Seen: 17 times

Last updated: Mar 09 '16

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