public void onDisplayAll() { for (JournalGroup grp : groups) { for (JournalElement elt : grp.getElements()) { if (!summaryList.contains(elt.getId())) summaryList.add(elt.getId()); } } if (request.isXHR()) { ajaxResponseRenderer.addRender(journalZone); } }
private JournalElement getElementFromGroup(String eltId, JournalGroup grp) { JournalElement e = alias(JournalElement.class); JournalElement elt = from($(e), grp.getElements()).where($(e.getId()).eq(eltId)).uniqueResult($(e)); return elt; }
private void createElement(JournalElement elt, JournalGroup grp) { group = grp; if (elementDeletedList.contains(elt.getId())) elementDeletedList.remove(elt.getId()); group.add(elt); element = elt; elementEditedId = element.getId(); if (request.isXHR()) ajaxResponseRenderer.addRender(journalZone); }
private JournalGroup getGroupFromGroupsList(String gpId) { JournalGroup g = alias(JournalGroup.class); JournalGroup grp = from($(g), groups).where($(g.getId()).eq(gpId)).uniqueResult($(g)); return grp; }
public String getGroupZoneId() { return "group_" + group.getId(); }