Package org.exoplatform.webui.application

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


                    uiApp.addMessage(new ApplicationMessage("UIResetPassword.msg.change-password-successfully", null));
                } catch (Exception e) {
                    uiApp.addMessage(new ApplicationMessage("UIResetPassword.msg.change-password-fail", null, ApplicationMessage.ERROR));
                }
            }
            request.addUIComponentToUpdateByAjax(uiMaskWorkspace);
        }
    }

}
View Full Code Here


            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

            UIPopupWindow uiPopupWindow = event.getSource();
            if (!uiPopupWindow.isShow())
                return;
            uiPopupWindow.setShow(false);
            WebuiRequestContext context = event.getRequestContext();
            context.addUIComponentToUpdateByAjax(uiPopupWindow);
        }
    }

    public boolean isShowCloseButton() {
        return showCloseButton;
View Full Code Here

        public void execute(Event<UIPopupMessages> event) throws Exception {
            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

                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

                    uiOrganizer.reload();
                }
                return;
            }
            uiOrganizer.selectApplication(appName);
            ctx.addUIComponentToUpdateByAjax(uiOrganizer);
        }

    }

    public static class AddCategoryActionListener extends EventListener<UIApplicationOrganizer> {
View Full Code Here

    public static class CutNodeActionListener extends BaseActionListener<UIRightClickPopupMenu> {
        public void execute(Event<UIRightClickPopupMenu> event) throws Exception {
            WebuiRequestContext context = event.getRequestContext();
            UINavigationNodeSelector uiNodeSelector = event.getSource().getAncestorOfType(UINavigationNodeSelector.class);
            context.addUIComponentToUpdateByAjax(uiNodeSelector);

            String nodeID = context.getRequestParameter(UIComponent.OBJECTID);
            TreeNode node = uiNodeSelector.findNode(nodeID);
            try {
                node = rebaseNode(node, Scope.SINGLE, uiNodeSelector);
View Full Code Here

        public void execute(Event<UIRightClickPopupMenu> event) throws Exception {
            WebuiRequestContext context = event.getRequestContext();
            UIRightClickPopupMenu uiPopupMenu = event.getSource();
            uiNodeSelector = uiPopupMenu.getAncestorOfType(UINavigationNodeSelector.class);
            context.addUIComponentToUpdateByAjax(uiNodeSelector);

            String nodeID = context.getRequestParameter(UIComponent.OBJECTID);
            TreeNode targetNode = uiNodeSelector.findNode(nodeID);
            TreeNode sourceNode = uiNodeSelector.getCopyNode();
            if (sourceNode == null)
View Full Code Here

        }

        protected void moveNode(Event<UIRightClickPopupMenu> event, int i) throws Exception {
            WebuiRequestContext context = event.getRequestContext();
            UINavigationNodeSelector uiNodeSelector = event.getSource().getAncestorOfType(UINavigationNodeSelector.class);
            context.addUIComponentToUpdateByAjax(uiNodeSelector.getParent());

            String nodeID = context.getRequestParameter(UIComponent.OBJECTID);
            TreeNode targetNode = uiNodeSelector.findNode(nodeID);
            // This happen when browser's not sync with server
            if (targetNode == null)
View Full Code Here

                TreeNode temp = parentNode.getChild(targetNode.getName());
                if (temp == null || !temp.getId().equals(targetNode.getId())) {
                    context.getUIApplication().addMessage(
                            new ApplicationMessage("UINavigationNodeSelector.msg.staleData", null, ApplicationMessage.WARNING));
                    uiNodeSelector.selectNode(uiNodeSelector.getRootNode());
                    context.addUIComponentToUpdateByAjax(uiNodeSelector);
                    return;
                }
            } catch (NavigationServiceException ex) {
                handleError(ex.getError(), uiNodeSelector);
                return;
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.