Package org.exoplatform.portal.application

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


         }
         UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
         UIPortalForm uiNewPortal = uiMaskWS.createUIComponent(UIPortalForm.class, "CreatePortal", "UIPortalForm");
         uiMaskWS.setUIComponent(uiNewPortal);
         uiMaskWS.setShow(true);
         prContext.addUIComponentToUpdateByAjax(uiMaskWS);
      }
   }

}
View Full Code Here


      {
         PortalRequestContext pcontext = (PortalRequestContext)context;

         UIMaskWorkspace uiMaskWS = getChildById(UIPortalApplication.UI_MASK_WS_ID);
         if (uiMaskWS.isUpdated())
            pcontext.addUIComponentToUpdateByAjax(uiMaskWS);
         if (getUIPopupMessages().hasMessage())
         {
            pcontext.addUIComponentToUpdateByAjax(getUIPopupMessages());
         }
View Full Code Here

         {
            uiPortlet.setHeight(height);
         }

         PortalRequestContext pcontext = (PortalRequestContext)event.getRequestContext();
         pcontext.addUIComponentToUpdateByAjax(uiMaskWorkspace);
         UIPortalApplication uiPortalApp = uiPortlet.getAncestorOfType(UIPortalApplication.class);
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
         pcontext.addUIComponentToUpdateByAjax(uiWorkingWS);
         pcontext.setFullRender(true);
         Util.showComponentLayoutMode(UIPortlet.class);
View Full Code Here

         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();
         List<UIPortlet> uiPortlets = new ArrayList<UIPortlet>(3);
         List<UIComponent> uiDataComponents = new ArrayList<UIComponent>(5);
View Full Code Here

         PortalRequestContext pcontext = (PortalRequestContext)event.getRequestContext();
         pcontext.addUIComponentToUpdateByAjax(uiMaskWorkspace);
         UIPortalApplication uiPortalApp = uiPortlet.getAncestorOfType(UIPortalApplication.class);
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
         pcontext.addUIComponentToUpdateByAjax(uiWorkingWS);
         pcontext.setFullRender(true);
         Util.showComponentLayoutMode(UIPortlet.class);
      }
   }
View Full Code Here

         PortalRequestContext pcontext = (PortalRequestContext)event.getRequestContext();
         //add by Pham Dinh Tan
         UIMaskWorkspace uiMaskWorkspace = uiPortalApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
         uiMaskWorkspace.setUIComponent(null);
         uiMaskWorkspace.setWindowSize(-1, -1);
         pcontext.addUIComponentToUpdateByAjax(uiMaskWorkspace);
         pcontext.setFullRender(true);
         Util.showComponentLayoutMode(UIPortlet.class);
      }
   }
View Full Code Here

         siteBody.setUIComponent(uiPortal);

         String uri = uiPortal.getSelectedNode() != null ? uiPortal.getSelectedNode().getUri() : null;
         PageNodeEvent<UIPortal> pnevent = new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, uri);
         uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
         prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
         JavascriptManager jsManager = prContext.getJavascriptManager();
         jsManager.addJavascript("eXo.portal.portalMode=" + UIPortalApplication.NORMAL_MODE + ";");
      }

   }
View Full Code Here

        
         //This code snippet is to make sure that Javascript/Skin is fully loaded at the first request
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
         PortalRequestContext pcontext = Util.getPortalRequestContext();
         pcontext.setFullRender(true);
         pcontext.addUIComponentToUpdateByAjax(uiWorkingWS);
        
         PageNavigation currentNav = showedUIPortal.getSelectedNavigation();
         String currentUri = showedUIPortal.getSelectedNode().getUri();
         if(currentUri.startsWith("/"))
         {
View Full Code Here

            uiPortal.refreshUIPage();
           
            PageNodeEvent<UIPortal> pnevent =
               new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, uri);
            uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
            prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
            JavascriptManager jsManager = prContext.getJavascriptManager();
            jsManager.addJavascript("eXo.portal.portalMode=" + UIPortalApplication.NORMAL_MODE + ";");
         }
         else
         {
View Full Code Here

            }
            else
            {
               UIApplication uiApp = prContext.getUIApplication();
               uiApp.addMessage(new ApplicationMessage("UIPortalForm.msg.notExistAnymore", null));
               prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
            }
         }
      }

   }
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.