Showing posts with label ZK MVC CRUD Examples. Show all posts
Showing posts with label ZK MVC CRUD Examples. Show all posts

MVC–CRUD Application with ZK 5 Data Binding

Here is the summary of what we have completed in this subject.
  1. We created new ZK Project, set up the hibernate and created Modal-View- Controller files to display all the record from the DB. Please click here to go that post.
  2. Next, we added filter feature such that if the user type any value, then the list will be filtered accordingly. Please click here to go that post
  3. Next, we’ve seen how to add more search parameters and filter the list. Please click here to go that post
All these are completed without using any data binding concept. Now let us see how we can use ZK 5 Data binding concepts and makes our job easy. If you are new ZK 5 Data binding, then first go here and learn basic stuffs.

List Item Connected with Hibernate and Search Parameter

 Summary

This example contains one list box with First name and Last Name as search Field. If the user do not give any values for first name and last name, then clicking Go Button will list all the records from the DB.
If the user enters either first name or last name or both, then using like operator, it will retrieve accordingly.

MVC CRUD Application–Filter records in the list based on user Conditions


In the last post, We have seen how to display filter the data when user types the first few characters. Now if we remember the UI , we have a text box in the Top of the List and also there is check box to filter the active/inactive records .

MVC CRUD Application with Auto filter for List item

In the last post, We have seen how to display the data in the List item from the database. Now we remember the UI , we have a text box in the Top of the List. If the user start enters the first character of the practice name, then we will filter the records in the list. Please keep in mind, that we are not going to hit the database again and again for each character is typed.

MVC CRUD Application


So what we are going to do with MVC CRUD Application. Well, any typical master screen will have one listing page where all the records are displayed and will also have the CRUD operation such as Add, Edit, Update and Delete.