Single Page


The Component Development Guide

Version 3.0.5 and later


Table of Contents

1. Introduction
Two Sides of a Component
View
Handle
Page and Rendering
The Non-Rendering Phases
The Rendering Phase
Trilogy of Component Development
Development of View
Development of Handle
Configuration
2. Handle
Skeletal Implementations
The org.zkoss.zk.ui.AbstractComponent Class
The org.zkoss.zk.ui.HtmlBasedComponent Class
The org.zkoss.zul.impl.XulElement Class
Communication with the Client
Response to the Client
Request to the Server
Miscellaneous Features
Drag-and-Drop, Tooltip and Context Menu
Click, Right Click and Double Click
3. View
HTML Tags
Retrieve Component Being Rendered
DSP File Location
Component Renderer
JavaScript Codes
Component Type
JavaScript File Location
Initialization and Cleanup
Initialization
Cleanup
Event Handling
ZK Callbacks
Browser Event Listeners
Communicate with the Server
Send Requests to the Server
Process Request at the Server
Process Smart Updates
Process AU Responses
JavaScript Utilities
4. Configuration
Language Addon
Location of the Language Addon
A Sample of the Language Addon
Headers of the Language Addon
Component Definitions
Language Definition
Location of the Language Definition
Headers of the Language Definition

SIMPLY RICH

ZKTM

May 2008

Potix Corporation

Revision 1

Copyright © Potix Corporation. All rights reserved.

The material in this document is for information only and is subject to change without notice. While reasonable efforts have been made to assure its accuracy, Potix Corporation assumes no liability resulting from errors or omissions in this document, or from the use of the information contained herein.

Potix Corporation may have patents, patent applications, copyright or other intellectual property rights covering the subject matter of this document. The furnishing of this document does not give you any license to these patents, copyrights or other intellectual property.

Potix Corporation reserves the right to make changes in the product design without reservation and without notification to its users.

The Potix logo and ZK are trademarks of Potix Corporation.

All other product names are trademarks, registered trademarks, or trade names of their respective owners.