public String doDelete(Stock b) { stocklocal.delete2(b); init(); return null; }
public String doAdd() { stocklocal.add(stock); System.out.println("Im inside ADD************"); return null; }
public String doUpdate() { stocklocal.update2(stock); init(); return null; }
@PostConstruct public void init() { stocks = stocklocal.readAll(); stock = new Stock(); }