Ejemplo n.º 1
0
 public void processRender(WebuiRequestContext context) throws Exception {
   // TODO: Tung.Pham edded
   // -------------------------
   refresh();
   // -------------------------
   Writer w = context.getWriter();
   w.write("<div class=\"UIUserInGroup\">");
   renderChildren();
   w.write("</div>");
 }
Ejemplo n.º 2
0
 public void execute(Event<UIUserInGroup> event) throws Exception {
   UIUserInGroup uiUserInGroup = event.getSource();
   String id = event.getRequestContext().getRequestParameter(OBJECTID);
   OrganizationService service =
       uiUserInGroup.getApplicationComponent(OrganizationService.class);
   MembershipHandler handler = service.getMembershipHandler();
   handler.removeMembership(id, true);
   uiUserInGroup.refresh();
   event
       .getRequestContext()
       .addUIComponentToUpdateByAjax(uiUserInGroup.getChild(UIGridUser.class));
 }