Revision history [back]

click to hide/show revision 1
initial version

answered 2013-04-04 11:51:45 +0800

benbai gravatar image benbai

http://www.zkoss.org

Where did you put your ZKAddon.xml?

Based on my previous post, it can be defined in lang-addon as follows:

  1. Create WEB-INF/my-addon.xml as below:

    <language-addon> <addon-name>myaddon</addon-name> <language-name>xul/html</language-name> <component> <component-name>imageLabel</component-name> <component-class>test.ImageLabel</component-class> <extends>window</extends> </component> </language-addon>

  2. Add it in zk.xml as below:

    <zk> <language-config> <addon-uri>/WEB-INF/my-addon.xml</addon-uri> </language-config> </zk>

then it should work

Where did you put your ZKAddon.xml?

Based on my previous post, it can be defined in lang-addon as follows:

  1. Create WEB-INF/my-addon.xml as below:

    <language-addon> <addon-name>myaddon</addon-name> <language-name>xul/html</language-name> <component> <component-name>imageLabel</component-name> <component-class>test.ImageLabel</component-class> <extends>window</extends> </component> </language-addon>

  2. Add it in zk.xml as below:

    <zk> <language-config> <addon-uri>/WEB-INF/my-addon.xml</addon-uri> </language-config> </zk>

then it should work

Where did you put your ZKAddon.xml?

Based on my previous post, it can be defined in lang-addon as follows:

  1. Create WEB-INF/my-addon.xml as below:

    <language-addon>
     <addon-name>myaddon</addon-name>
     <language-name>xul/html</language-name>
     <component>
         <component-name>imageLabel</component-name>
         <component-class>test.ImageLabel</component-class>
         <extends>window</extends>
     </component>
    

    </language-addon>

  2. Add it in zk.xml as below:

    <zk>
     <language-config>
         <addon-uri>/WEB-INF/my-addon.xml</addon-uri>
     </language-config>
    </zk>

    </zk>

then it should work

Where did you put your ZKAddon.xml?

Based on my previous post, it can be defined in lang-addon as follows:

  1. Create WEB-INF/my-addon.xml as below:

    <language-addon>
    <addon-name>myaddon</addon-name>
    <language-name>xul/html</language-name>
    <component>
        <component-name>imageLabel</component-name>
        <component-class>test.ImageLabel</component-class>
        <extends>window</extends>
    </component>
    </language-addon>
    

    </language-addon>

  2. Add it in zk.xml as below:

    <zk>
    <language-config>
        <addon-uri>/WEB-INF/my-addon.xml</addon-uri>
    </language-config>
    </zk>
    

then it should work

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