-
FEATURED COMPONENTS
First time here? Check out the FAQ!
"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!
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
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.
Asked: 2012-03-29 16:46:16 +0800
Seen: 110 times
Last updated: Mar 30 '12