Package org.exoplatform.webui.application

Examples of org.exoplatform.webui.application.StateManager


      {
         for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle())
         {
            lifecycle.onStartRequest(this, context);
         }
         StateManager sm = getStateManager();
         UIApplication uiApp = sm.restoreUIRootComponent(context);
         context.setUIApplication(uiApp);
         uiApp.processDecode(context);
         if (!context.isResponseComplete() && !context.getProcessRender())
         {
            uiApp.processAction(context);
         }

         // Store ui root
         sm.storeUIRootComponent(context);
      }
      finally
      {
         context.setProcessAction(true);
         WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
View Full Code Here


      {
         for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle())
         {
            lifecycle.onStartRequest(this, context);
         }
         StateManager sm = getStateManager();
         UIApplication uiApp = sm.restoreUIRootComponent(context);
         context.setUIApplication(uiApp);
         javax.portlet.Event portletEvent = req.getEvent();
         context.setAttribute(PORTLET_EVENT_VALUE, portletEvent.getValue());
         Event<UIComponent> uiEvent = uiApp.createEvent(portletEvent.getName(), Phase.PROCESS, context);
         uiEvent.broadcast();

         // Store ui root
         sm.storeUIRootComponent(context);
      }
      finally
      {
         WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
      }
View Full Code Here

            for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle())
            {
               lifecycle.onStartRequest(this, context);
            }
         }
         StateManager sm = getStateManager();
         UIApplication uiApp = sm.restoreUIRootComponent(context);
         context.setUIApplication(uiApp);
         if (!context.isResponseComplete())
         {
            UIPortletApplication uiPortletApp = (UIPortletApplication)uiApp;
            uiPortletApp.processRender(this, context);
         }
         uiApp.setLastAccessApplication(System.currentTimeMillis());

         // Store ui root
         sm.storeUIRootComponent(context);
      }
      finally
      {

         // Close the writer
View Full Code Here

        WebuiRequestContext.setCurrentInstance(context);
        try {
            for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle()) {
                lifecycle.onStartRequest(this, context);
            }
            StateManager sm = getStateManager();
            UIApplication uiApp = sm.restoreUIRootComponent(context);
            context.setUIApplication(uiApp);
            uiApp.processDecode(context);
            if (!context.isResponseComplete() && !context.getProcessRender()) {
                uiApp.processAction(context);
            }

            // Store ui root
            sm.storeUIRootComponent(context);
        } finally {
            context.setProcessAction(true);
            WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
        }
    }
View Full Code Here

        WebuiRequestContext.setCurrentInstance(context);
        try {
            for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle()) {
                lifecycle.onStartRequest(this, context);
            }
            StateManager sm = getStateManager();
            UIApplication uiApp = sm.restoreUIRootComponent(context);
            context.setUIApplication(uiApp);
            javax.portlet.Event portletEvent = req.getEvent();
            context.setAttribute(PORTLET_EVENT_VALUE, portletEvent.getValue());
            Event<UIComponent> uiEvent = uiApp.createEvent(portletEvent.getName(), Phase.PROCESS, context);
            uiEvent.broadcast();

            // Store ui root
            sm.storeUIRootComponent(context);
        } finally {
            WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
        }
    }
View Full Code Here

        WebuiRequestContext.setCurrentInstance(context);
        try {
            for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle()) {
                lifecycle.onStartRequest(this, context);
            }
            StateManager sm = getStateManager();
            UIApplication uiApp = sm.restoreUIRootComponent(context);
            context.setUIApplication(uiApp);
            if (uiApp instanceof UIPortletApplication) {
                ((UIPortletApplication) uiApp).serveResource(context);
            }

            // Store ui root
            sm.storeUIRootComponent(context);
        } finally {
            WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
        }
    }
View Full Code Here

            if (!context.hasProcessAction()) {
                for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle()) {
                    lifecycle.onStartRequest(this, context);
                }
            }
            StateManager sm = getStateManager();
            UIApplication uiApp = sm.restoreUIRootComponent(context);
            context.setUIApplication(uiApp);
            if (!context.isResponseComplete()) {
                UIPortletApplication uiPortletApp = (UIPortletApplication) uiApp;
                uiPortletApp.processRender(this, context);
            }
            uiApp.setLastAccessApplication(System.currentTimeMillis());

            // Store ui root
            sm.storeUIRootComponent(context);
        } finally {

            // Close the writer
            Safe.close(context.getWriter());
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.application.StateManager

Copyright © 2018 www.massapicom. 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.