示例#1
0
 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);
   }
 }
示例#2
0
  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;
  }
示例#3
0
 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);
 }
示例#4
0
 private JournalGroup getGroupFromGroupsList(String gpId) {
   JournalGroup g = alias(JournalGroup.class);
   JournalGroup grp = from($(g), groups).where($(g.getId()).eq(gpId)).uniqueResult($(g));
   return grp;
 }
示例#5
0
 public String getGroupZoneId() {
   return "group_" + group.getId();
 }