0

Passing object parameters to macros

asked 2006-05-05 21:43:45 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3716220

By: absinthe5

Can java Object parameters be passed to a macro when included from zul? or are only String parameters allowed?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2006-05-06 03:07:45 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3716472

By: henrichen

Yes. Argument is passed thru a java.util.Map

/henri

link publish delete flag offensive edit

answered 2006-05-06 03:47:14 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3716485

By: absinthe5

Ok. How do I put an object in the map in EL script. The example below passes the macro parameter as a String:

<?component name="doc" macro-uri="/WEB-INF/macros/doc.zul"?>
<doc object="${paramobj}"/>


link publish delete flag offensive edit

answered 2006-05-06 04:10:56 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3716492

By: henrichen

I see your point. Looks we have to find a way to pass the original object over.
Maybe an el function called object?

<doc object="${c:object(paramobj)}"/>

Please post to Feature Request and we can track it. Thanks.

/henri


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

RSS

Stats

Asked: 2006-05-05 21:43:45 +0800

Seen: 414 times

Last updated: May 06 '06

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