General Control"

From Documentation
m (Created page with '{{ZKDevelopersReferencePageHeader}} {{ZKDevelopersReferenceHeadingToc}} {{ZKDevelopersReferencePageFooter}}')
 
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
 +
 +
Though optional, you could have the total control of the client's functionality without the assistance of server-side code. Generally, you don't need to know how ZK Client Engine and client-side widgets communicate with the server. Their states are synchronized automatically by ZK. However, you could control them if necessary. It is the so-called Server-client fusion.
 +
 +
The rule of thumb is to compose and manipulate UI at the server first since it is easier. Then, you could reduce the load of the server or improve the responsiveness and visual effects by composing some UI at the client when it is appropriate. Notice that JavaScript is readable by any user, so be careful not to expose sensitive data or business logic when migrating some code from server to client.
 +
 +
In this chapter, we will discuss the details of the client-side control and programming.
 +
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Revision as of 02:42, 1 December 2010


General Control


Though optional, you could have the total control of the client's functionality without the assistance of server-side code. Generally, you don't need to know how ZK Client Engine and client-side widgets communicate with the server. Their states are synchronized automatically by ZK. However, you could control them if necessary. It is the so-called Server-client fusion.

The rule of thumb is to compose and manipulate UI at the server first since it is easier. Then, you could reduce the load of the server or improve the responsiveness and visual effects by composing some UI at the client when it is appropriate. Notice that JavaScript is readable by any user, so be careful not to expose sensitive data or business logic when migrating some code from server to client.

In this chapter, we will discuss the details of the client-side control and programming.


Subsections:



Last Update : 2010/12/01

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