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>"); }
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)); }