addControl(editLink);
editLink.addBehavior(new DefaultAjaxBehavior() {
@Override
public ActionResult onAction(Control source) {
Customer customer = customerService.getCustomerForID(editLink.getValue());
return new ActionResult("Edit Clicked for customer: " + customer.getName(), ActionResult.TEXT);
}
});
addControl(deleteLink);
deleteLink.addBehavior(new DefaultAjaxBehavior() {
@Override
public ActionResult onAction(Control source) {
Customer customer = customerService.getCustomerForID(deleteLink.getValue());
return new ActionResult("Delete Clicked for customer: " + customer.getName(), ActionResult.TEXT);
}
});
table.getControlLink().addBehavior(new DefaultAjaxBehavior() {