Examples of ScriptResource


Examples of com.ibm.xsp.resource.ScriptResource

            // Add the semantic tag resource
            addSemanticTagResource(context, rootEx, ctClient, ctServer, endpointName, inclProfiles, inclCommunities);
        }

        String sbtlib_dojo = SBTLIBRARY + "?lib=dojo";
        rootEx.addEncodeResource(new ScriptResource(sbtlib_dojo, true));

        // Required by the profiles card code...
        //dijit._Widget,dijit._Templated,dijit._Container,dijit.form.ComboBox               
        rootEx.addEncodeResource(ExtLibResources.dojoI18n); // $NON-NLS-1$
        rootEx.addEncodeResource(ExtLibResources.dojoCookie); // $NON-NLS-1$
View Full Code Here

Examples of com.ibm.xsp.resource.ScriptResource

            String onInitSvcConfig = ctClient.getInitSvcConfigScript();
            if(StringUtil.isNotEmpty(onInitSvcConfig)) {
                b.append(onInitSvcConfig);
                b.append("\n");
            }
            ScriptResource configJS = new ScriptResource();
            configJS.setClientSide(true);
            configJS.setContents(b.toString());
            rootEx.addEncodeResource(context,configJS);
        } catch(JsonException ex) {
            throw new FacesExceptionEx(ex);
        }
    }
View Full Code Here

Examples of com.ibm.xsp.resource.ScriptResource

//        if(ctClient.isDebug()) {
//            b.append("&debug=uncompressed");
//        }
       
        // Add the resources
        ScriptResource js = new ScriptResource(b.toString(), true);
        //js.setAttribute("defer", "defer");       
   
        rootEx.addEncodeResource(js);
       
        // Try to load the vcard only CSS which is anyway required, even when OneUI is
View Full Code Here

Examples of com.ibm.xsp.resource.ScriptResource

            String onInitProxy = stClient.getInitProxyScript();
            if(StringUtil.isNotEmpty(onInitProxy)) {
                b.append(onInitProxy);
                b.append("\n");
            }
            ScriptResource configJS = new ScriptResource();
            configJS.setClientSide(true);
            configJS.setContents(b.toString());
            rootEx.addEncodeResource(context,configJS);
        } catch(JsonException ex) {
            throw new FacesExceptionEx(ex);
        }
    }
View Full Code Here

Examples of com.ibm.xsp.resource.ScriptResource

                if(StringUtil.isEmpty(lang)) {
                    lang = XSPContext.getXSPContext(context).getLocaleString();
                }
                baseCompUrl.append(lang);
                // The bascomp URL
                ScriptResource baseCompJS = new ScriptResource(baseCompUrl.toString(),true);
                rootEx.addEncodeResource(context,baseCompJS);
                // And the corresponding CSS
                StyleSheetResource baseCss = new StyleSheetResource(linkurl + "/stwebclient/dojo.blue/sametime/themes/WebClientAllNoTundra.css");
                rootEx.addEncodeResource(context,baseCss);
            }
           
            int preload = 0;
            if(script.equals(UISametimeClient.SCRIPT_LIVENAME)) {
                preload = 1;
                ScriptResource livenameJS= new ScriptResource(linkurl + "/stwebclient/livenameLight.js",true);
                rootEx.addEncodeResource(context,livenameJS);
            } else if(script.equals(UISametimeClient.SCRIPT_WIDGETS)) {
                preload = 2;
                baseComp = true;
                ScriptResource widgetsJS= new ScriptResource(linkurl + "/stwebclient/widgetsLight.js",true);
                rootEx.addEncodeResource(context,widgetsJS);
            }
           
            // Add some dojo resources to optimize the use of the JS aggregator
            if(preload>0) {
View Full Code Here

Examples of com.ibm.xsp.resource.ScriptResource

            // Add the dijit.TooltipDialog module
            DojoModuleResource module = new DojoModuleResource("dijit.TooltipDialog");
            UIViewRootEx rootEx = (UIViewRootEx)paramFacesContext.getViewRoot();
            rootEx.addEncodeResource(module);

            ScriptResource res = new ScriptResource("mypic.js", true);
            rootEx.addEncodeResource(res);           
           
          writer.startElement("div", null);
          writer.writeAttribute("id", paramUIComponent.getClientId(paramFacesContext) + ":loginDialog", "id");
          writer.writeAttribute("style", "display:none;", null);
View Full Code Here

Examples of org.apache.stanbol.commons.web.base.ScriptResource

  }

  @Override
  public List<ScriptResource> getScriptResources() {
    List<ScriptResource> resources = new ArrayList<ScriptResource>();
    resources.add(new ScriptResource("text/javascript",
        "scripts/prettify/prettify.js", this, 0));
    resources.add(new ScriptResource("text/javascript", "scripts/jit.js",
        this, 1));
    resources.add(new ScriptResource("text/javascript",
        "scripts/jquery-1.5.1.min.js", this, 2));
    resources.add(new ScriptResource("text/javascript",
        "scripts/jquery-ui-1.8.11.custom.min.js", this, 3));
    return resources;
  }
View Full Code Here

Examples of org.apache.stanbol.commons.web.base.ScriptResource

    }

    @Override
    public List<ScriptResource> getScriptResources() {
        List<ScriptResource> resources = new ArrayList<ScriptResource>();
        resources.add(new ScriptResource("text/javascript", "openlayers-2.9/OpenLayers.js", this, 10));
        resources.add(new ScriptResource("text/javascript", "scripts/prettify/prettify.js", this, 20));
        return resources;
    }
View Full Code Here

Examples of org.apache.stanbol.commons.web.base.ScriptResource

    }

    @Override
    public List<ScriptResource> getScriptResources() {
        List<ScriptResource> resources = new ArrayList<ScriptResource>();
        resources.add(new ScriptResource("text/javascript", "scripts/actions.js", this, 10));
        return resources;
    }
View Full Code Here

Examples of org.apache.stanbol.commons.web.base.ScriptResource

  }

  @Override
  public List<ScriptResource> getScriptResources() {
    List<ScriptResource> resources = new ArrayList<ScriptResource>();
    resources.add(new ScriptResource("text/javascript",
        "scripts/prettify/prettify.js", this, 0));
    resources.add(new ScriptResource("text/javascript", "scripts/jit.js",
        this, 1));
    resources.add(new ScriptResource("text/javascript",
        "scripts/jquery-1.5.1.min.js", this, 2));
    resources.add(new ScriptResource("text/javascript",
        "scripts/jquery-ui-1.8.11.custom.min.js", this, 3));
    return resources;
  }
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.