-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Can we wrap macro component in a jar ? where should we put the zul file in side classpath, how to access it's address?
you can add it to the lang-addon.xml of your jar
<component> <component-name>mycomp</component-name> <component-class>com.mine.Mycomp</component-class> <macro-uri>~./mine/mycomp.zul</macro-uri> </component>
and access it directly
<mycomp>
cool,. I will try it, thanks,..
where should I put the lang-addon.xml in the classpath? is it inthe classpath root or,.. META-inf or some specific package? please let me know.
what if I have a re usable (zul), it has it's composer (subclass of Generic Forward Composer).
I suppose to bundle both file (zul and .java) in a jar.
Latter I will call this zul as a modal window:
Window winMdl = Executions.createComponents("zul_address_inside_jar",null,dataObject);
how could i refer to zul_address_inside_jar ,..
In project
zk.xml
<language-config> <addon-uri>/WEB-INF/lang-addon.xml</addon-uri> </language-config>
/metainfo/zk/lang-addon.xml
http://docs.zkoss.org/wiki/Component_Development_Tutorial
Asked: 2010-10-03 20:37:00 +0800
Seen: 227 times
Last updated: Oct 03 '10