Language Definition"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} A language definition defines a component set (aka., a language). For example, ZUL and [[ZUML Reference…')
 
Line 5: Line 5:
 
To define a language definition, you have to prepare a file called <code>/metainfo/zk/lang.xml</code> and makes it available to the classpath (such as in a JAR file, or in WEB-INF/classes of a Web application).
 
To define a language definition, you have to prepare a file called <code>/metainfo/zk/lang.xml</code> and makes it available to the classpath (such as in a JAR file, or in WEB-INF/classes of a Web application).
  
A language addon is used to extend a language definition. It is also a language definition, and it shall be called <code>/metainfo/zk/lang-addon.xml</code> available to the classpath, or specified in [[ZK_Configuration_Reference/zk.xml/The_language-config_Element|WEB-INF/zk.xml]].
+
A language addon is used to extend a language definition. It shall be called <code>/metainfo/zk/lang-addon.xml</code> available to the classpath, or specified in [[ZK_Configuration_Reference/zk.xml/The_language-config_Element|WEB-INF/zk.xml]].
 +
 
 +
When ZK starts, it will parse all language definitions and then all language addons based on their [[ZK Developer's Reference/Language Definition/depends|dependency]]. A language addon is a variant of a language definition. They are almost the same, except the naming and it must specify the [[ZK Developer's Reference/Language Definition/addon-name|addon name]].
  
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Revision as of 06:55, 18 November 2010


Language Definition


A language definition defines a component set (aka., a language). For example, ZUL and XHTML are two component sets.

To define a language definition, you have to prepare a file called /metainfo/zk/lang.xml and makes it available to the classpath (such as in a JAR file, or in WEB-INF/classes of a Web application).

A language addon is used to extend a language definition. It shall be called /metainfo/zk/lang-addon.xml available to the classpath, or specified in WEB-INF/zk.xml.

When ZK starts, it will parse all language definitions and then all language addons based on their dependency. A language addon is a variant of a language definition. They are almost the same, except the naming and it must specify the addon name.


Subsections:



Last Update : 2010/11/18

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