-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have created a custom tag by extending
public class MyMessageTag extends Listcell {
private static final long serialVersionUID = 1L;
public void setLabel(String label) {
super.setLabel("Here can put message");
}
}
and my zul is like this
<zscript><![CDATA[
import com.zk.test.samples.BigList;
List items = new BigList(5); //a big list of Integer
]]></zscript>
<listbox id="listbox" mold="paging" pageSize="10">
<listitem forEach="${items}">
<myMessageTag label="${each}-1" />
</listitem>
</listbox>
but when i run my code i am getting error as Component definition not found: myMessageTag
can you help me what i am missing here.
Please help
Hello RD190
I think you forgot to add your tag in lang-addon.xml, Please check that, there should be a entry something like this
<component>
<extends>listcell</extends>
<component-name>myMessageTag</component-name>
<component-class>**Your Class Path e.g. com.something.something**</component-class>
</component>
Or may be check the spelling or camel casing in lang-addon.xml
Asked: 2015-03-31 03:51:16 +0800
Seen: 10 times
Last updated: Mar 31 '15
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate