// Populate the table of contacts
add(new ListView<Contact>("contacts", contactDao.getContacts()) {
@Override
protected void populateItem(final ListItem<Contact> item) {
Contact contact = item.getModelObject();
item.add(new Label("name", contact.getName()));
item.add(new Label("email", contact.getEmail()));
item.add(new Link<Contact>("delete", item.getModel()) {
// Add a click handler
@Override
public void onClick() {