Examples of refreshCachedUI()


Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

            prContext.ignoreAJAXUpdateOnPortlets(true);

            UIPortal uiPortal = uiPortalApp.getCurrentSite();
            uiPortal.setRenderSibling(UIPortal.class);

            uiPortalApp.refreshCachedUI();

            UIPortalComposer composer = uiWorkingWS.findFirstComponentOfType(UIPortalComposer.class).setRendered(false);
            composer.setEditted(false);

            UserNode currentNode = uiPortal.getSelectedUserNode();
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

                // This catch block should be put in an appropriate ApplicationLifecyclec
            }
            uiToolPanel.setUIComponent(null);

            // Invalidate UI cached
            uiPortalApp.refreshCachedUI();

            if (PortalProperties.SESSION_ALWAYS.equals(uiPortal.getSessionAlive())) {
                uiPortalApp.setSessionOpen(true);
            } else {
                uiPortalApp.setSessionOpen(false);
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

            }

            context.addUIComponentToUpdateByAjax(uicomponent);
        } catch (NoSuchDataException e) {
            UIPortalApplication uiApp = Util.getUIPortalApplication();
            uiApp.refreshCachedUI();
            ApplicationMessage msg = new ApplicationMessage("UIPortlet.message.staleData", null,
                    ApplicationMessage.WARNING);
            uiApp.addMessage(msg);
        } catch (Exception e) {
            String message = e.getLocalizedMessage();
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

                portletExceptionService.handle(pcException);
            }

            if (e instanceof NoSuchDataException) {
                UIPortalApplication uiApp = Util.getUIPortalApplication();
                uiApp.refreshCachedUI();
                markup = Text.create(context.getApplicationResourceBundle().getString("UIPortlet.message.staleData"));
            } else {
                // Log the error
                log.error("Portlet render threw an exception", pcException);
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

                if (pConfig != null) {
                    prContext.getUserPortalConfig().setPortalConfig(pConfig);
                }

                // Update the cache of UIPortal from UIPortalApplication
                uiPortalApp.refreshCachedUI();

                UserNode currentNode = uiPortal.getSelectedUserNode();
                SiteKey siteKey = currentNode.getNavigation().getKey();
                PageNodeEvent<UIPortalApplication> pnevent = new PageNodeEvent<UIPortalApplication>(uiPortalApp,
                        PageNodeEvent.CHANGE_NODE, siteKey, currentNode.getURI());
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

                //
                response.flushBuffer();
            } catch (NoSuchDataException e) {
                UIPortalApplication uiApp = Util.getUIPortalApplication();
                uiApp.refreshCachedUI();
                response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
            } catch (Exception e) {
                if (!e.getClass().toString().contains("ClientAbortException")) {
                    log.error("Problem while serving resource " + (resourceId != null ? resourceId : "") + " for the portlet: "
                            + uiPortlet.getPortletContext().getId(), e);
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

            // Save
            try {
                service.saveDashboard(dashboard);
            } catch (Exception e) {
                UIPortalApplication uiApp = Util.getUIPortalApplication();
                uiApp.refreshCachedUI();
                WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
                context.getUIApplication().addMessage(
                        new ApplicationMessage("UIDashboard.msg.StaleData", null, ApplicationMessage.ERROR));
                context.setAttribute(SAVE_FAIL, true);
            }
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

            }
            uiEditWS.setRendered(false);
            uiPortal = (UIPortal) siteBody.getUIComponent();

            // Update the cache of UIPortal from UIPortalApplication
            uiPortalApp.refreshCachedUI();

            UserNode currentNode = uiPortal.getSelectedUserNode();
            SiteKey siteKey = currentNode.getNavigation().getKey();
            PageNodeEvent<UIPortalApplication> pnevent = new PageNodeEvent<UIPortalApplication>(uiPortalApp,
                    PageNodeEvent.CHANGE_NODE, siteKey, currentNode.getURI());
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

        //
        uiToolPanel.setUIComponent(null);

        // Invalidate UI cached
        uiPortalApp.refreshCachedUI();

        if (PortalProperties.SESSION_ALWAYS.equals(uiPortal.getSessionAlive())) {
            uiPortalApp.setSessionOpen(true);
        } else {
            uiPortalApp.setSessionOpen(false);
View Full Code Here

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.refreshCachedUI()

            PortalRequestContext prContext = Util.getPortalRequestContext();
            UIPortalApplication uiPortalApp = (UIPortalApplication) prContext.getUIApplication();
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);

            UIPortal currentPortal = uiWorkingWS.restoreUIPortal();
            uiPortalApp.refreshCachedUI();

            closeComposer(uiPortalApp, uiWorkingWS);
            fireChangeNode(prContext, uiPortalApp, currentPortal);
        }
    }
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.