Embed ZK Component in Foreign Framework"

From Documentation
m
Line 3: Line 3:
 
=Employment/Purpose=
 
=Employment/Purpose=
 
Here describes how to embed ZK component(s) as a native element of a foreign framework. For example, how to embed ZK components as a native JSF component. It allows application developers to use the native element without knowing the existence of ZK.
 
Here describes how to embed ZK component(s) as a native element of a foreign framework. For example, how to embed ZK components as a native JSF component. It allows application developers to use the native element without knowing the existence of ZK.
 +
 +
For sake of description, we call it the embedded component.
  
 
<blockquote>
 
<blockquote>
Line 8: Line 10:
 
Note: if it is OK for your developers to work on ZUL directly. it is more convenient and powerful to use the inclusion (such as &lt;jsp:include&gt;) or [http://www.zkoss.org/product/zkjsp.dsp ZK JSP Tags], and you don't have to wrap them into a native element.
 
Note: if it is OK for your developers to work on ZUL directly. it is more convenient and powerful to use the inclusion (such as &lt;jsp:include&gt;) or [http://www.zkoss.org/product/zkjsp.dsp ZK JSP Tags], and you don't have to wrap them into a native element.
 
</blockquote>
 
</blockquote>
 +
 +
=Environment setup for using an embedded component=
 +
 +
To use an embedded component, ZK Update Engine (<javadoc>org.zkoss.zk.au.http.DHtmlUpdateServlet</javadoc>) is required, while ZK Loader (<javadoc>org.zkoss.zk.ui.http.DHtmlLayoutServlet</javadoc>) is not (though it is safe to install it too. If ZK Loader is not installed, it assumes the udpate URI is <code>/zkau</code>, which can be overriden by setting a library property called <code>org.zkoss.zkplus.embed.updateURI</code>.
  
 
=Version History=
 
=Version History=

Revision as of 03:30, 16 September 2010


Embed ZK Component in Foreign Framework


Employment/Purpose

Here describes how to embed ZK component(s) as a native element of a foreign framework. For example, how to embed ZK components as a native JSF component. It allows application developers to use the native element without knowing the existence of ZK.

For sake of description, we call it the embedded component.


Note: if it is OK for your developers to work on ZUL directly. it is more convenient and powerful to use the inclusion (such as <jsp:include>) or ZK JSP Tags, and you don't have to wrap them into a native element.

Environment setup for using an embedded component

To use an embedded component, ZK Update Engine (DHtmlUpdateServlet) is required, while ZK Loader (DHtmlLayoutServlet) is not (though it is safe to install it too. If ZK Loader is not installed, it assumes the udpate URI is /zkau, which can be overriden by setting a library property called org.zkoss.zkplus.embed.updateURI.

Version History

Version Date Content
5.0.5 September 2010 Renders was introduced to simplify the making of a native element for a foreign framework.



Last Update : 2010/09/16

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