Package com.ibm.xsp.context

Examples of com.ibm.xsp.context.DojoLibrary


        pw.println("        ]");
      }
     
      protected void aggregatorAddLibraryModules(DojoDependencyList dojoResources) throws IOException {
            ResourceFactory factory = dojoResources.getFactory();
            DojoLibrary dojoLibrary = dojoResources.getDojoLibrary();
   
    //        if(includeSDKModules) {
          // The resources bellow are generally needed
          // They should not be included if the SDK layer is already loaded
            dojoResources.addResource(factory.getDojoResource("sbt.config",dojoLibrary));
View Full Code Here


  //
  // Helpers
  //
  public static class BaseRenderer {
    protected static String getDefautLibraryPath(String serverUrl) {
      DojoLibrary lib = DojoLibraryFactory.getDefaultLibrary();
          String s = '-'+lib.getVersionTag();
      return serverUrl+"/xsp/.ibmxspres/dojoroot"+s+"/";
    }
View Full Code Here

    }
   
    protected String aggregatorAddModules(String serverUrl, String js, boolean includeLibraryModules) throws IOException {
      // XPages aggregator
          ResourceFactory factory = ResourceFactory.get();
          DojoLibrary dojoLibrary = DojoLibraryFactory.getDefaultLibrary(false);
          String dojoLocale = "en-us";
          DojoDependencyList dojoResources = new DojoDependencyList(factory,dojoLibrary,dojoLocale);
         
          aggregatorAddDojoModules(dojoResources);
          if(includeLibraryModules) {
            aggregatorAddLibraryModules(dojoResources);
          }
          aggregatorAddJSDependencyModules(dojoResources, js);
 
          StringBuilder b = new StringBuilder();
          b.append(MinifierResourceProvider.URL_DOJO);
          if(dojoLibrary.isUncompressed() || dojoLibrary!=DojoLibraryFactory.getDefaultLibrary(false)) {
              b.append('-');
              b.append(dojoLibrary.getVersionTag());
          }
          b.append('/');
          b.append(dojoResources.getUrlParameter());
          b.append(".js"); // $NON-NLS-1$
          String fullUrl = b.toString();
View Full Code Here

          return dojoAgg;
    }
     
    protected void aggregatorAddDojoModules(DojoDependencyList dojoResources) throws IOException {
          ResourceFactory factory = dojoResources.getFactory();
          DojoLibrary dojoLibrary = dojoResources.getDojoLibrary();
         
        // Common dojo resources
          dojoResources.addResource(factory.getDojoResource("dojo.parser",dojoLibrary));
          dojoResources.addResource(factory.getDojoResource("dojo.date",dojoLibrary));
          dojoResources.addResource(factory.getDojoResource("dojo.date.locale",dojoLibrary));
View Full Code Here

    protected void aggregatorAddLibraryModules(DojoDependencyList dojoResources) throws IOException {
    }
   
    protected void aggregatorAddJSDependencyModules(DojoDependencyList dojoResources, String js) throws IOException {
          ResourceFactory factory = dojoResources.getFactory();
          DojoLibrary dojoLibrary = dojoResources.getDojoLibrary();
 
          //if(includeSDKModules) {
          // Extract the entries from the JS file
          // This might be in the SDK layer already, so we don't load them if not fully using the XPages agg but the SDK one
          if(StringUtil.isNotEmpty(js)) {
View Full Code Here

TOP

Related Classes of com.ibm.xsp.context.DojoLibrary

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.