English 中文(简体)
Help with ZK component development
原标题:
  • 时间:2010-06-11 20:29:02
  •  标签:
  • zk

I m developing a simple component. My jar structure is:

br/netsoft/zkComponents/Tef.class
META-INF/MANIFEST.MF
metainfo/zk/lang-addon.xml
web/js/br/netsoft/zkComponents.js
web/zkComponents/tef.dsp

My dsp file is:

<c:set var="self" value="${requestScope.arg.self}"/>
<span z.type="br.netsoft.zkComponents.Tef" id="${self.uuid}" ${self.outerAttrs}${self.innerAttrs}>
<applet archive="tef.jar" id="tefApplet" code="br.netsoft.applets.tef.TEFProxy" width="0px" height="0px" />
<span/>

and the language-addon.xml is:

<language-addon>
<addon-name>componentes</addon-name>
<language-name>xul/html</language-name> 
<component> 
<component-name>tef</component-name> 
<component-class>br.netsoft.zkComponents.Tef</component-class> 
<mold> 
<mold-name>default</mold-name> 
<mold-uri>~./zkComponents/tef.dsp</mold-uri> 
</mold> 
</component> 
</language-addon>

When i try to test this component, appears a pop-up showing : " /js/br/netsoft/zkComponents.js not found"

what is wrong?

问题回答

if in ZK 5 , you need widget class

or in 3 , you need to specify the javascript location





相关问题
what is wrong in my java zkoss program

updated <?page title="example"?> <window id="music" apply="com.main"> <combobox id="combo" autodrop="true" onChanging="music.suggest()"/> </window> java public class main ...

How to use ZK getFellow() method?

I am passing a bunch of tabs from a zul file to a java file like so: tabs.zul <tabs> <tab id="tab1" label="Tab1"> </tab> <tab id="tab2" label="Tab2"> </tab> </...

how to run an large process in java on a button click

i need to start an crawl process on clicking a button if i write inside onclick the other tabs cant be accessible till the process stops i need to run the process in background.in java

Real-world ZK vs GWT experience

A fellow developer and I are putting together a proposal for a new application, and we ve presented both ZK and GWT to be possible choices. After messing around with both, I d prefer to move ahead ...

ZK: How to create component and register databinding

Hi, I am using ZK framework to develop web applications. I am using databinding on components to set and get values. I can register databinding in source ZUL file and also in the method ...

Help with ZK component development

I m developing a simple component. My jar structure is: br/netsoft/zkComponents/Tef.class META-INF/MANIFEST.MF metainfo/zk/lang-addon.xml web/js/br/netsoft/zkComponents.js web/zkComponents/tef.dsp ...

zk selecting combobox item programmatically

I cannot set the value of combobox programmatically can some one tell me what missing in the code public class Profile extends Window implements AfterCompose { @Override public void ...

热门标签