The language-config Element"

From Documentation
Line 4: Line 4:
 
  <language-config>
 
  <language-config>
 
     <addon-uri>''a_uri''</addon-uri>
 
     <addon-uri>''a_uri''</addon-uri>
 +
    <language-uri>''a_uri</language-uri>
 
  </language-config>
 
  </language-config>
  
Line 45: Line 46:
 
</language-addon>
 
</language-addon>
 
</source>
 
</source>
 +
 +
==The language-uri Element ==
 +
[Default: ''none'']
 +
[since 5.0.7]
 +
 +
It specifies the URI of the language definition.  To specify more than one URIs, you have to define them with multiple <tt>language-uri</tt>.
 +
 +
A language definition is used to define a new set of components. For more information, please refer to [[ZK Client-side Reference/Language Definition|ZK Client-side Reference: Language Definition]].
  
 
==Version History==
 
==Version History==
Line 51: Line 60:
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| &nbsp;
+
| 5.0.7
| &nbsp;
+
| May 2011
| &nbsp;
+
| The language-uri element was introduced.
 
|}
 
|}
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Revision as of 07:47, 6 May 2011


The language-config Element


Syntax:

<language-config>
    <addon-uri>a_uri</addon-uri>
    <language-uri>a_uri</language-uri>
</language-config>

The allowed child elements include addon-uri. You might have multiple language-config elements in one zk.xml.

 <language-config>
     <addon-uri>/WEB-INF/lang-addon.xml</addon-uri>
     <addon-uri>/WEB-INF/lang-addon2.xml</addon-uri>
 </language-config>


Note: Unlike most other configurations defined in WEB-INF/zk.xml, the definitions defined in language addons are applied to all Web applications sharing the same zk.jar.

In other words, the definitions in language addons are visible to all Web applications sharing the same zk.jar. Furthermore, it may cause errors in another Web application, if the classes or resources are available only in the Web application defining this.

Thus, if it is an issue, just put zk.jar and relevant ZK libraries under the WEB-INF/lib directory.

The addon-uri Element

[Default: none]

It specifies the URI of language add-on definitions. To specify more than one URIs, you have to define them with multiple addon-uri.

A language addon is used to add new components and override the definitions of existent components. For more information, please refer to ZK Client-side Reference: Language Definition.

For example,

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

Then, the content of lang-addon.xml could be

<language-addon>
	<addon-name>FooApplication</addon-name>
	<language-name>xul/html</language-name>
</language-addon>

The language-uri Element

[Default: none]
[since 5.0.7]

It specifies the URI of the language definition. To specify more than one URIs, you have to define them with multiple language-uri.

A language definition is used to define a new set of components. For more information, please refer to ZK Client-side Reference: Language Definition.

Version History

Version Date Content
5.0.7 May 2011 The language-uri element was introduced.



Last Update : 2011/05/06

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