Here I’ll introduce a simple example of how client side processing works in ZK 5, which I believe the JavaScript developers would enjoy.

In this case input data is sent with the event to the server side; however, you may also opt to handle events right at the client if it makes sense to do so.
For example, we could implement a form validation mechanism at the client (other then the built in ZK InputElement constraints).

The event processing stages at client side is the following in ZK:
DOM Event -> Widget (JS object) Event -> Component (Java object) Event

Hence, if we intercept and handle the widget event at the client side, the component event will never be sent to the server side for processing.

Here is how it works:

Get Adobe Flash player

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply