/** JSF method to save the selected product. */ public String save() { try { ProductManager.save(selected); } catch (ProductException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { deleteTempUploads(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return "/secure/admin/product_list?faces-redirect=true"; }