Phone directory example application

Description

This small step up from the bookmarks example manages a list of names and phone numbers. It features a live Ajax search using the SearchPanel component supplemented by a custom category filter. Categories are stored in the database because it’s just easier that way.

If you want to see automatic data versioning in action, open two browser windows and change the same entry in each one. Hibernate’s optimistic locking will allow the first change and reject the second.

Demonstration

Try this application and enter your own false phone number.

Source files

If you’re set up for Databinder, download and run this at home. You will need to add some categories yourself, after Hibernate creates the tables.

Projects for the reader

  1. Address fields
  2. Search by category

Next…

So now you can create, delete, and even update. But what about using panels, authentication, Textile processing, and one-to-many editing? Yeah, that’s what I thought. You’d better have a look at the next code cook book.