Package org.exoplatform.portal.application

Examples of org.exoplatform.portal.application.PortalRequestContext.addUIComponentToUpdateByAjax()


         UIPortalApplication uiPortalApp = uiPageForm.getAncestorOfType(UIPortalApplication.class);
         PortalRequestContext pcontext = Util.getPortalRequestContext();
         UIMaskWorkspace uiMaskWS = uiPortalApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
         uiMaskWS.setUIComponent(null);
         uiMaskWS.setShow(false);
         pcontext.addUIComponentToUpdateByAjax(uiMaskWS);

         UIPage uiPage = uiPageForm.getUIPage();
         if (uiPage == null)
            return;
         String storageId = uiPage.getStorageId();
View Full Code Here


            //            UIPageNodeSelector.class, UIPageNavigationControlBar.class};     
            //        uiManagement.setRenderedChildrenOfTypes(childrenToRender);

            pcontext.setFullRender(true);
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            pcontext.addUIComponentToUpdateByAjax(uiWorkingWS);

            return;
         }

         if (Page.DESKTOP_PAGE.equals(page.getFactoryId()))
View Full Code Here

            UIPortalToolPanel toolPanel = Util.getUIPortalToolPanel();
            toolPanel.setShowMaskLayer(true);
            pcontext.setFullRender(true);
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            pcontext.addUIComponentToUpdateByAjax(uiWorkingWS);
            DataStorage dataService = uiPageForm.getApplicationComponent(DataStorage.class);
            dataService.save(page);
            return;
         }
View Full Code Here

               UserACL userACL = uiForm.getApplicationComponent(UserACL.class);
               permission = userACL.getMakableMT() + ":" + groupIdSelected;
               uiForm.findFirstComponentOfType(UIPermissionSelector.class).setValue(permission);
            }
         }
         prContext.addUIComponentToUpdateByAjax(uiForm.getParent());
      }
   }

   static public class ChangeOwnerIdActionListener extends EventListener<UIPageForm>
   {
View Full Code Here

         UIPortlet uiPortlet = event.getSource();

         UIPortalApplication uiPortalApp = uiPortlet.getAncestorOfType(UIPortalApplication.class);
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
         PortalRequestContext pcontext = (PortalRequestContext)event.getRequestContext();
         pcontext.addUIComponentToUpdateByAjax(uiWorkingWS);
         pcontext.setFullRender(true);

         String windowState = event.getRequestContext().getRequestParameter(Constants.PORTAL_WINDOW_STATE);
         if (windowState == null)
         {
View Full Code Here

         {
            UIApplication uiApp = Util.getPortalRequestContext().getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIPortalForm.msg.notExistAnymore", null));
            UIPortalApplication uiPortalApp = (UIPortalApplication)prContext.getUIApplication();
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
         }

         UIMaskWorkspace uiMaskWorkspace = uiForm.getParent();
         uiMaskWorkspace.setUIComponent(null);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiMaskWorkspace);
View Full Code Here

         dataService.save(pconfig);
         dataService.save(navigation);
         UIPortalApplication uiPortalApp = event.getSource().getAncestorOfType(UIPortalApplication.class);
         UIMaskWorkspace uiMaskWS = uiPortalApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
         uiMaskWS.setUIComponent(null);
         pcontext.addUIComponentToUpdateByAjax(uiMaskWS);

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

         uiPageForm.getUIStringInput("ownerId").setValue(prContext.getRemoteUser());
         uiPageForm.removeChildById("PermissionSetting");
         uiPageForm.removeChild(UIFormInputItemSelector.class);
         UIPageTemplateOptions uiTemplateConfig = uiPageForm.createUIComponent(UIPageTemplateOptions.class, null, null);
         uiPageForm.addUIFormInput(uiTemplateConfig);
         prContext.addUIComponentToUpdateByAjax(uiMaskWS);
      }
   }

   //  TODO: Tan Pham Dinh: No need back action in portal 2.6
   //  static public class BackActionListener extends EventListener<UIPageBrowser> {
View Full Code Here

         {
            Page existPage = dataService.getPage(page.getPageId());
            if (existPage != null)
            {
               uiPortalApp.addMessage(new ApplicationMessage("UIPageForm.msg.sameName", null));
               pcontext.addUIComponentToUpdateByAjax(uiPortalApp.getUIPopupMessages());
               return;
            }
            page.setModifiable(true);
            if (page.getChildren() == null)
               page.setChildren(new ArrayList<ModelObject>());
View Full Code Here

            super.processRender(context);
        } else {
            UIMaskWorkspace uiMaskWS = getChildById(UIPortalApplication.UI_MASK_WS_ID);
            if (uiMaskWS.isUpdated())
                pcontext.addUIComponentToUpdateByAjax(uiMaskWS);
            if (getUIPopupMessages().hasMessage()) {
                pcontext.addUIComponentToUpdateByAjax(getUIPopupMessages());
            }

            Set<UIComponent> list = context.getUIComponentToUpdateByAjax();
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.