/** * * Row Edit * * @param event */ @Override public void onEdit(RowEditEvent event) { Report014Detail editRow = ((Report014Detail) event.getObject()); logger.trace("Edit Row : {}", editRow); for (int i = 0; i < report014Details.size(); i++) { if (report014Details.get(i).getKey() == editRow.getKey()) { report014Details.remove(i); report014Details.add(i, editRow); logger.trace("After Edit Row : {}", editRow); } break; } JsfUtil.addSuccessMessage("แก้ใขข้อมูลสำเร็จ!!"); }
/** * * Row Cancel * * @param event */ @Override public void onCancel(RowEditEvent event) { JsfUtil.addSuccessMessage("ยกเลิก!!"); }