private void createPOSelectItemList() { try { poSelectItemList.clear(); ArrayList<PurchaseOrder> openPrList = poController.getOpenPurchaseOrders(warehouseCode); poSelectItemList.add(new SelectItem(Long.valueOf(-1), "àÅ×Í¡ãºÊÑ觫×éÍ")); SelectItem selectItem; for (PurchaseOrder po : openPrList) { selectItem = new SelectItem(); selectItem.setValue(po.getId()); selectItem.setLabel(po.getFormattedPoNumber()); poSelectItemList.add(selectItem); } } catch (ControllerException e) { FacesUtils.reportError(FacesContext.getCurrentInstance(), e.getMessage(), e.getMessage(), e); e.printStackTrace(); } }