Examples of addUIComponentToUpdateByAjax()


Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

        List<UIComponent> children = uiEditWS.getChildren();
        for (UIComponent child : children) {
            if (!child.isRendered() || child.getClass().equals(UIPortalComposer.class)) {
                continue;
            }
            rcontext.addUIComponentToUpdateByAjax(child);
        }
        int portalMode = uiApp.getModeState();
        if (portalMode != UIPortalApplication.NORMAL_MODE) {
            switch (portalMode) {
                case UIPortalApplication.APP_BLOCK_EDIT_MODE:
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

         UIPopupMessages uiPopupMessage = event.getSource();
         uiPopupMessage.clearMessages();
         WebuiRequestContext context = event.getRequestContext();
         if (uiPopupMessage.getParent() == null)
         {
            context.addUIComponentToUpdateByAjax(uiPopupMessage);
            return;
         }
         if (!uiPopupMessage.isShow())
            return;
         UIComponent uiParent = uiPopupMessage.getParent();
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

            return;
         }
         if (!uiPopupMessage.isShow())
            return;
         UIComponent uiParent = uiPopupMessage.getParent();
         context.addUIComponentToUpdateByAjax(uiParent);
         Event<UIComponent> pEvent =
            uiParent.createEvent("ClosePopup", event.getExecutionPhase(), event.getRequestContext());
         if (pEvent != null)
            pEvent.broadcast();
      }
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

            rContext.getJavascriptManager().addJavascript(
               "eXo.webui.UIVirtualList.loadFinished('" + virtualList.getId() + "');");
         }
         rContext.getJavascriptManager().addJavascript(
            "eXo.webui.UIVirtualList.updateList('" + virtualList.getId() + "');");
         rContext.addUIComponentToUpdateByAjax((UIComponent)dataFeed);
      }
   }
}
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

                mailSrc.sendMessage(res.getString("UIForgetPassword.mail.from"), email,
                        res.getString("UIForgetPassword.mail.subject"), mailText);
            } catch (Exception e) {
                requestContext.getUIApplication().addMessage(
                        new ApplicationMessage("UIForgetPassword.msg.send-mail-fail", null));
                requestContext.addUIComponentToUpdateByAjax(uilogin);

                return;
            }

            uilogin.getChild(UILoginForm.class).setRendered(true);
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

            uilogin.getChild(UILoginForm.class).setRendered(true);
            uilogin.getChild(UIForgetPasswordWizard.class).setRendered(false);
            uilogin.getChild(UIForgetPassword.class).setRendered(false);
            requestContext.getUIApplication()
                    .addMessage(new ApplicationMessage("UIForgetPassword.msg.send-mail-success", null));
            requestContext.addUIComponentToUpdateByAjax(uilogin);
        }
    }

    public static class BackActionListener extends EventListener<UIForgetPassword> {
        public void execute(Event<UIForgetPassword> event) throws Exception {
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

                user_.setPassword(newpassword);
                orgService.getUserHandler().saveUser(user_, true);
                uiMaskWorkspace.createEvent("Close", Phase.DECODE, request).broadcast();
                uiApp.addMessage(new ApplicationMessage("UIResetPassword.msg.change-password-successfully", null));
            }
            request.addUIComponentToUpdateByAjax(uiMaskWorkspace);
        }
    }
}
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

                user_.setPassword(newpassword);
                orgService.getUserHandler().saveUser(user_, true);
                uiMaskWorkspace.createEvent("Close", Phase.DECODE, request).broadcast();
                uiApp.addMessage(new ApplicationMessage("UIResetPassword.msg.change-password-successfully", null));
            }
            request.addUIComponentToUpdateByAjax(uiMaskWorkspace);
        }
    }

}
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

            WebuiRequestContext requestContext = event.getRequestContext();
            GateInToken token = tokenService.getToken(tokenId);
            if (token == null) {
                requestContext.getUIApplication().addMessage(new ApplicationMessage("UIForgetPassword.msg.expration", null));
                requestContext.addUIComponentToUpdateByAjax(uiPortal.getParent());
                return;
            }

            OrganizationService orgSrc = uiPortal.getApplicationComponent(OrganizationService.class);
            // get user
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()

            uiMaskWorkspace.setUIComponent(null);
            uiMaskWorkspace.setWindowSize(-1, -1);
            WebuiRequestContext rContext = event.getRequestContext();
            rContext.getJavascriptManager().require("SHARED/uiMaskWorkspace", "maskWS")
                    .addScripts("maskWS.hide('" + uiMaskWorkspace.getId() + "');");
            rContext.addUIComponentToUpdateByAjax(uiMaskWorkspace);
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.