The library-property Element"
From Documentation
Maya001122 (talk | contribs) |
Tmillsclare (talk | contribs) m |
||
Line 1: | Line 1: | ||
+ | {{ZKConfigurationReferencePageHeader}} | ||
<source lang="xml" > | <source lang="xml" > | ||
Line 16: | Line 17: | ||
The library properties are easier to access than the preferences since they are static members (of <javadoc>org.zkoss.lang.Library</javadoc>). However, their scope depends on the installation. | The library properties are easier to access than the preferences since they are static members (of <javadoc>org.zkoss.lang.Library</javadoc>). However, their scope depends on the installation. | ||
− | + | {{ZKConfigurationReferencePageFooter}} | |
− |
Revision as of 08:50, 12 July 2010
<library-property>
<name>''any name''</name>
<value>''any value''</value>
</library-property>
Species a library-level property with the library-property element. The above example is equivalent to
org.zkoss.lang.Library.setProperty("any name", "any value");
The library properties are shared by all Java codes that use the same set of ZK libraries. If you installed ZK libraries in WEB-INF/ib of a ZK application, the library properties are shared only within the application.
The library properties are easier to access than the preferences since they are static members (of Library). However, their scope depends on the installation.