0

"Instantiate Macro in Java",need help

asked 2012-03-29 16:46:16 +0800

yaminglin1977 gravatar image yaminglin1977
36 2

updated 2012-03-29 16:46:57 +0800

"Instantiate Macro in Java" section in zk 6.0.0 developer's reference.pdf has following statement:
HtmlMacroComponent ua = (HtmlMacroComponent) page.getComponentDefinition("username", false).newInstance(page,null);
my question is :
where and how to declare the new "username" component?
appreciate any help!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-03-30 01:37:10 +0800

yaminglin1977 gravatar image yaminglin1977
36 2

i find that the more pactice is composite component,and the url:
http://books.zkoss.org/wiki/Small_Talks/2011/December/Define_Composite_Component_using_Java_Annotation_in_ZK6
explain how to use it.

link publish delete flag offensive edit

answered 2012-03-30 09:06:02 +0800

yaminglin1977 gravatar image yaminglin1977
36 2

by the way ,if you using zk 6.0.0,you have to download ZK-Composite.20120322.zip,not ZK-Composite.zip,i guess the ZK-Composite.zip is for zk 6 rc2

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: 2012-03-29 16:46:16 +0800

Seen: 110 times

Last updated: Mar 30 '12

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