Package com.ibm.xsp.resource

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


            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

//        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

            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

                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

            // 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

TOP

Related Classes of com.ibm.xsp.resource.ScriptResource

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.