Package org.apache.myfaces.tobago.internal.config

Examples of org.apache.myfaces.tobago.internal.config.ThemeBuilder.resolveThemes()


      themeBuilder.addTheme(theme4);
    } else {
      Assert.fail();
    }

    themeBuilder.resolveThemes();
    Assert.assertEquals(3, theme.getResources().getScriptList().size());
    Assert.assertEquals("script/tobago.js", theme.getResources().getScriptList().get(0).getName());
    Assert.assertEquals("script/tobago-logging.js", theme.getResources().getScriptList().get(1).getName());
    Assert.assertEquals("script/tobago-console.js", theme.getResources().getScriptList().get(2).getName());
View Full Code Here


    final ResourceManagerImpl resourceManager = new ResourceManagerImpl(tobagoConfig);

    final ThemeBuilder themeBuilder = new ThemeBuilder(tobagoConfig);
    final ResourceLocator resourceLocator = new ResourceLocator(servletContext, resourceManager, themeBuilder);
    resourceLocator.locate();
    themeBuilder.resolveThemes();

    servletContext.setAttribute(RESOURCE_MANAGER, resourceManager);

    initialized = true;
  }
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.