The Differences

From Documentation
Revision as of 07:44, 19 July 2010 by Char (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} Besides being ZK components, the implementation of the XHTML component set has some differences from other component sets<ref name="ftn54">These …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Besides being ZK components, the implementation of the XHTML component set has some differences from other component sets[1], such that it would be easier to port traditional XHTML pages to ZK.

Notes

  1. These differences are made by implementing particular interfaces, so you could apply similar effects to your own components if you like.

A Component Created for Each Tag

ZK Loaders creates a ZK component for Each tag declared in a ZUML page. For example, there are four components are created for the following ZUML page (html, body, p and a label).

<html>
    <body>
        <p>Hi</p>
    </body>
</html>

The advantage is that you can change the content of any component dynamically:

<p id="info">Hi</p>
<z:button onClick="info.detach()" xmlns:z="http://www.zkoss.org/2005/zk"/>

However, it takes more time to process and memory to hold these components, so, if a portion of the page



Last Update : 2010/07/19

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