Examples of loadScriptResource()


Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        //
        Writer w = context.getWriter();
        if (!context.useAjax()) {
            // Support for legacy resource declaration
            jsMan.loadScriptResource(ResourceScope.SHARED, JavascriptConfigParser.LEGACY_JAVA_SCRIPT);
            // Need to add bootstrap as immediate since it contains the loader
            jsMan.loadScriptResource(ResourceScope.SHARED, "bootstrap");

            super.processRender(context);
        } else {
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        Writer w = context.getWriter();
        if (!context.useAjax()) {
            // Support for legacy resource declaration
            jsMan.loadScriptResource(ResourceScope.SHARED, JavascriptConfigParser.LEGACY_JAVA_SCRIPT);
            // Need to add bootstrap as immediate since it contains the loader
            jsMan.loadScriptResource(ResourceScope.SHARED, "bootstrap");

            super.processRender(context);
        } else {
            UIMaskWorkspace uiMaskWS = getChildById(UIPortalApplication.UI_MASK_WS_ID);
            if (uiMaskWS.isUpdated())
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        UIPortalApplication uiApp = (UIPortalApplication) context.getUIApplication();
        int portalMode = uiApp.getModeState();
        if (portalMode != UIPortalApplication.CONTAINER_BLOCK_EDIT_MODE
                && portalMode != UIPortalApplication.APP_BLOCK_EDIT_MODE && hasPermission()) {
            JavascriptManager jsMan = context.getJavascriptManager();
            jsMan.loadScriptResource(ResourceScope.PORTLET, getApplicationId());
        }
        super.processRender(context);
    }

    public Text generateRenderMarkup(PortletInvocationResponse pir, WebuiRequestContext context) {
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

    public Map<String, Boolean> getScripts() {
        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        JavascriptManager jsMan = context.getJavascriptManager();

        // Need to add bootstrap as immediate since it contains the loader
        jsMan.loadScriptResource(ResourceScope.SHARED, "bootstrap");

        //
        FetchMap<ResourceId> requiredResources = jsMan.getScriptResources();
        log.debug("Resource ids to resolve: {}", requiredResources);
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        PortalRequestContext pcontext = (PortalRequestContext) context;

        JavascriptManager jsMan = context.getJavascriptManager();
        // Add JS resource of current portal
        String portalOwner = pcontext.getPortalOwner();
        jsMan.loadScriptResource(ResourceScope.PORTAL, portalOwner);

        //
        Writer w = context.getWriter();
        if (!context.useAjax()) {
            // Support for legacy resource declaration
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        //
        Writer w = context.getWriter();
        if (!context.useAjax()) {
            // Support for legacy resource declaration
            jsMan.loadScriptResource(ResourceScope.SHARED, JavascriptConfigParser.LEGACY_JAVA_SCRIPT);
            // Need to add bootstrap as immediate since it contains the loader
            jsMan.loadScriptResource(ResourceScope.SHARED, "bootstrap");

            super.processRender(context);
        } else {
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        Writer w = context.getWriter();
        if (!context.useAjax()) {
            // Support for legacy resource declaration
            jsMan.loadScriptResource(ResourceScope.SHARED, JavascriptConfigParser.LEGACY_JAVA_SCRIPT);
            // Need to add bootstrap as immediate since it contains the loader
            jsMan.loadScriptResource(ResourceScope.SHARED, "bootstrap");

            super.processRender(context);
        } else {
            UIMaskWorkspace uiMaskWS = getChildById(UIPortalApplication.UI_MASK_WS_ID);
            if (uiMaskWS.isUpdated())
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

        PortalRequestContext prcontext = (PortalRequestContext) context;

        Text markup = null;
        if (pir instanceof FragmentResponse) {
            JavascriptManager jsMan = context.getJavascriptManager();
            jsMan.loadScriptResource(ResourceScope.PORTLET, getApplicationId());

            FragmentResponse fragmentResponse = (FragmentResponse) pir;
            switch (fragmentResponse.getType()) {
                case FragmentResponse.TYPE_CHARS:
                    markup = Text.create(fragmentResponse.getContent());
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

         value = "";
      }
     

      JavascriptManager jsManager = context.getJavascriptManager();
      jsManager.loadScriptResource("webui-ext");
      jsManager.addJavascript("eXo.webui.UICalendar.setFirstDayOfWeek(" + Calendar.getInstance(context.getLocale()).getFirstDayOfWeek() + ");");
      Writer w = context.getWriter();

      w.write("<input type=\"text\" onfocus='eXo.webui.UICalendar.init(this,");
      w.write(String.valueOf(isDisplayTime_));
View Full Code Here

Examples of org.exoplatform.web.application.JavascriptManager.loadScriptResource()

   }

   public void processRender(WebuiRequestContext context) throws Exception
   {
      JavascriptManager jsManager = context.getJavascriptManager();
      jsManager.loadScriptResource("webui-ext");
      jsManager.addJavascript("eXo.webui.UICombobox.init('" + getId() + "');");
      Writer w = context.getWriter();
      String options = "[";
      String text =
         "<div class='UIComboboxComponent'><div class='UIComboboxList'><div class='UIComboboxContainer'><div class='UIComboboxItemContainer'>";
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.