The richlet Element"
From Documentation
m |
|||
Line 17: | Line 17: | ||
</source> | </source> | ||
− | Once declaring a richlet, you can map it to any number of URL by use of [[ZK Configuration Reference/zk.xml/The richlet-mapping Element|the richlet-mapping element]] as described in the next section. | + | Once declaring a richlet, you can map it to any number of URL by the use of [[ZK Configuration Reference/zk.xml/The richlet-mapping Element|the richlet-mapping element]] as described in the next section. |
=Version History= | =Version History= |
Revision as of 02:45, 8 August 2011
To declare a richlet, you have to add the richlet element to zk.xml. You could specify any number of richlet elements. Each of them must have two child elements, richlet-name and richlet-class, and might have any number of the init-param child elements.
The class name specified in the richlet-class element must implement the Richlet interface. The name and value specified in the init-param element can be retrieved when the init method of Richlet.init(RichletConfig) is called.
<richlet>
<richlet-name>Test</richlet-name>
<richlet-class>org.zkoss.zkdemo.TestRichlet</richlet-class>
<init-param>
<param-name>any</param-name>
<param-value>any</param-value>
</init-param>
</richlet>
Once declaring a richlet, you can map it to any number of URL by the use of the richlet-mapping element as described in the next section.
Version History
Version | Date | Content |
---|---|---|