public String doUpdateAction() { // Type Java code that runs when the component is clicked // TODO: Return outcome that corresponds to a navigation rule // return "accountDetails"; // return "logout"; // global try { CustomerManager customerManager = (CustomerManager)getManagedBean("customerManager"); customerManager.updateCustomer(customer); System.out.println("Customer updated: " + customer.getSsn()); } catch (Exception e) { System.out.println("Customer update failed: " + customer.getSsn()); } return ""; }