-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everyone.
I developed a ZK composite component and it works.
I followed this guide: DefineCompositeComponentusingJavaAnnotationin_ZK6 (not enough karma to post the link, but it's on the zk website)
I used annotations, as suggested in the SmallTalk.
I was able to test the component in the same Eclipse project, but I don't know how to put it in a jar and share with others. Everything I tried results in the message:
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file:/pathToIndex/index.zul:5:43: Component definition not found: componentName in [LanguageDefinition: xul/html]
I already enabled annotation scanning, via zk.xml configuration, but it seems to ignore annotated classes contained in the jar.
Any ideas?
Thanks.
UPDATE: thanks for the replies.
It turns out that only che config.xml is necessary if you use annotations. In the config.xml write the library property to enable the package scanning, as specified in the smalltalk I mentioned.
Hi, add lang-addon.xml in jar
refer to http://books.zkoss.org/wiki/ZKDeveloper%27sReference/UIComposing/CompositeComponent#DefineCompositeComponentsasStandard_Components
but seems you use "Define Composite Component using Java Annotation in ZK6", you can refer to http://books.zkoss.org/wiki/SmallTalks/2011/December/DefineCompositeComponentusingJavaAnnotationinZK6#ZKCompositeDefinitioncanberegisteredthroughpackagescanning
and
http://books.zkoss.org/wiki/ZK%20Configuration%20Reference/JAR%20File%27s%20config.xml
http://books.zkoss.org/wiki/ZK%20Component%20Development%20Essentials/Packing%20as%20a%20Jar
Asked: 2013-09-12 13:26:22 +0800
Seen: 21 times
Last updated: Sep 13 '13
composite component help [closed]
adding a menuitem with image on Menubar
can somebody give the use of imagecontent in menuitem ? [closed]
Source code of page dosen't change when usinge an Include
label in org.zkoss.zul.Messagebox must be middle aligned [closed]
Grid with frozen column shows unnecessary scrollbar