Package org.exoplatform.webui.application

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


                return;
            }

            if (uiForm.getApplications().size() == 0) {
                ctx.getUIApplication().addMessage(new ApplicationMessage("UIAddApplicationForm.msg.appNotExists", null));
                ctx.addUIComponentToUpdateByAjax(uiOrganizer);
                return;
            }
            UIFormRadioBoxInput uiRadio = uiForm.getUIInput("application");
            String displayName = uiForm.getUIStringInput(FIELD_NAME).getValue();
            Application tmp = uiForm.getApplications().get(Integer.parseInt(uiRadio.getValue()));
View Full Code Here


            appRegService.save(selectedCate, app);
            uiOrganizer.reload();
            uiOrganizer.setSelectedCategory(selectedCate.getName());
            uiOrganizer.selectApplication(app.getApplicationName());
            ctx.addUIComponentToUpdateByAjax(uiOrganizer);
        }

        private Application cloneApplication(Application app) {
            Application newApp = new Application();
            newApp.setApplicationName(app.getApplicationName());
View Full Code Here

            WebuiRequestContext context = event.getRequestContext();
            UIPopupWindow uiNavigationPopup = uiSiteManagement.getChild(UIPopupWindow.class);
            uiNavigationPopup.setUIComponent(navigationManager);
            uiNavigationPopup.setWindowSize(400, 400);
            context.addUIComponentToUpdateByAjax(uiNavigationPopup.getParent());

            TreeNode pageNode = uiPageNodeForm.getPageNode();
            if (pageNode != null) {
                selector.getUserNodeLabels().put(pageNode.getId(), pageNode.getI18nizedLabels());
            }
View Full Code Here

            WebuiRequestContext ctx = event.getRequestContext();
            String name = ctx.getRequestParameter(OBJECTID);
            GadgetRegistryService service = uiManagement.getApplicationComponent(GadgetRegistryService.class);
            if (service.getGadget(name) == null) {
                uiManagement.reload();
                ctx.addUIComponentToUpdateByAjax(uiManagement);
                return;
            }
            UIGadgetEditor uiEditor = uiManagement.getChild(UIGadgetEditor.class);
            if (uiEditor != null) {
                Source source = uiEditor.getSource();
View Full Code Here

                    .findFirstComponentOfType(UIApplicationOrganizer.class);
            String selectedCateName = uiOrganizer.getSelectedCategory().getName();
            uiOrganizer.reload();
            uiOrganizer.setSelectedCategory(selectedCateName);

            ctx.addUIComponentToUpdateByAjax(uiManagement);
        }

        private void removeFromApplicationRegistry(String name) throws Exception {
            ApplicationRegistryService appRegService = org.exoplatform.portal.webui.util.Util.getUIPortalApplication()
                    .getApplicationComponent(ApplicationRegistryService.class);
View Full Code Here

                return;
            }
            service.saveGadget(GadgetUtil.toGadget(gadget.getName(), gadget.getUrl(), gadget.isLocal()));
            uiManagement.initData();
            uiManagement.setSelectedGadget(gadget.getName());
            ctx.addUIComponentToUpdateByAjax(uiManagement);
        }

    }

    public static class EditActionListener extends EventListener<UIGadgetInfo> {
View Full Code Here

         uiPortalApp.getUserPortalConfig().getNavigations().add(0, pageNav);
         uiPortalApp.getNavigations().add(0, pageNav);
         uiPortalApp.localizeNavigations();
        
         //Update group navigation list
         ctx.addUIComponentToUpdateByAjax(uicomp);

         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChild(UIWorkingWorkspace.class);
         uiWorkingWS.updatePortletsByName("GroupNavigationPortlet");
         uiWorkingWS.updatePortletsByName("UserToolbarGroupPortlet");
      }
View Full Code Here

      {
         if (!child.isRendered() || child.getClass().equals(UIPortalComposer.class))
         {
            continue;
         }
         rcontext.addUIComponentToUpdateByAjax(child);
      }
      int portalMode = uiApp.getModeState();
      if (portalMode != UIPortalApplication.NORMAL_MODE)
      {
         switch(portalMode)
View Full Code Here

         try{
            uiGadget.addUserPref(event.getRequestContext().getRequestParameter("userPref"));
         } catch(Exception e){
            WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
            UIPortletApplication uiPortlet = uiGadget.getAncestorOfType(UIPortletApplication.class);
            context.addUIComponentToUpdateByAjax(uiPortlet);
            throw new MessageException(new ApplicationMessage("UIDashboard.msg.ApplicationNotExisted", null, ApplicationMessage.ERROR));
         }

         //
         if (uiGadget.isLossData())
View Full Code Here

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

         UIPortalApplication uiApp = uiPortal.getAncestorOfType(UIPortalApplication.class);
         UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
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.