Home » MVVM

Tag Archives: MVVM

ZK in Action: MVVM – Working Together with ZK Client API

In the previous posts we’ve implemented the following functionalities with ZK’s MVVM: load data into a table save data with form binding delete entries and update the View programmatically A key distinction between ZK MVVM and ZK MVC implementation wise is that we do not access and manipulate the UI components directly in the controller(ViewModel) class. In this post, we’ll ...

Read More »

ZK in Action: MVVM – Form Binding

This is the second episode in our efforts to build a ZK application from the ground up. The previous post dealt with loading and rendering of data into a table using MVVM. In this post, we’ll be introduced to ZK MVVM’s form binding. Objective We’ll build an “Add” function that would enable us to save new entries to the inventory. ...

Read More »

ZK in Action: MVVM – Update View Programmatically

In the previous 2 posts we’ve used ZK’s MVVM functionalities to: load data into a table save data with form binding We’ve seen when a method is decorated with the annotation @NotifyChange( ) , upon its execution completes, the Binder would be informed of the VM property’s changes so that Binder can update the corresponding UI accordingly. In this post, ...

Read More »

ZK in Action: MVVM – Load and Render Data

A previous post had briefly introduced the RIA framework ZK and how its CSS Selector inspired controller mechanism alleviates some of the burdens that comes with UI changes by making the task of referencing UI components in the controller class a relatively flexible affair. We then explored how the MVVM patterns in ZK allows a single ViewModel to serve different ...

Read More »

A First Look at MVVM in ZK 6

MVVM vs. MVC In a previous post we’ve seen how the Ajax framework ZK adopts a CSS selector inspired Controller for wiring UI components in View and listening to their events. Under this ZK MVC pattern, the UI components in View need not to be bound to any Controller methods or data objects. The flexibility of using selector patterns as ...

Read More »