Esempio n. 1
0
 /**
  * JSF method to provide access to all products.
  *
  * @return a list of products
  */
 public List<Product> getAll() {
   List<Product> all = null;
   try {
     all = ProductManager.findAllProducts();
   } catch (ProductException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return all;
 }