The library-property Element"

From Documentation
m
Line 3: Line 3:
 
<source lang="xml" >
 
<source lang="xml" >
 
  <library-property>
 
  <library-property>
     <name>''any name''</name>
+
     <name>any name</name>
     <value>''any value''</value>
+
     <value>any value</value>
 
  </library-property>
 
  </library-property>
+
  </source>
</source>
 
  
 
Species a library-level property with the <tt>library-property</tt> element. The above example is equivalent to
 
Species a library-level property with the <tt>library-property</tt> element. The above example is equivalent to

Revision as of 07:39, 13 July 2010


The library-property Element


 <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.



Last Update : 2010/07/13

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.