1

Custom tag not working getting error

asked 2015-03-31 03:51:16 +0800

RD190 gravatar image RD190
27 3

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

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-31 03:54:41 +0800

echarish gravatar image echarish flag of Japan
1809 7
http://jp.linkedin.com/in...

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

link publish delete flag offensive edit
0

answered 2015-03-31 03:57:42 +0800

RD190 gravatar image RD190
27 3

Thank you echarish

it was a spelling mistake, now it works properly :)

link publish delete flag offensive edit

Comments

1

You are welcome

echarish ( 2015-03-31 03:58:14 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-03-31 03:51:16 +0800

Seen: 10 times

Last updated: Mar 31 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More