Package org.apache.myfaces.tobago.config

Examples of org.apache.myfaces.tobago.config.TobagoConfig.resolveThemes()


      // todo: cleanup, use one central TobagoConfig, no singleton ResourceManager
      // resources
      ResourceManagerFactory.init(servletContext, tobagoConfig);

      // prepare themes
      tobagoConfig.resolveThemes();

      // theme config cache
      servletContext.setAttribute(ThemeConfig.THEME_CONFIG_CACHE, new HashMap());

    } catch (Throwable e) {
View Full Code Here


    Theme one = new MockTheme("one", "Mock Theme One", Arrays.asList(theme));
    Map<String, Theme> availableThemes = new HashMap<String, Theme>();
    availableThemes.put(theme.getName(), theme);
    availableThemes.put(one.getName(), one);
    tobagoConfig.setAvailableThemes(availableThemes);
    tobagoConfig.resolveThemes();
    tobagoConfig.initProjectState(servletContext);
    servletContext.setAttribute(TobagoConfig.TOBAGO_CONFIG, tobagoConfig);

    final ClientProperties clientProperties = new ClientProperties();
    clientProperties.setTheme(one);
View Full Code Here

      // apply bugfix
      LayoutUtil.setFixLayoutTransparency(tobagoConfig.isFixLayoutTransparency());
     
      // prepare themes
      tobagoConfig.resolveThemes();

      // theme config cache
      ThemeConfig.init(servletContext);

    } catch (Throwable e) {
View Full Code Here

      // todo: cleanup, use one central TobagoConfig, no singleton ResourceManager
      // resources
      tobagoConfig.initProjectState(servletContext);
      ResourceManagerFactory.init(servletContext, tobagoConfig);
      // prepare themes
      tobagoConfig.resolveThemes();

    } catch (Throwable e) {
      if (LOG.isErrorEnabled()) {
        String error = "Error while deploy process. Tobago can't be initialized! Application will not run!";
        LOG.error(error, e);
View Full Code Here

      // todo: cleanup, use one central TobagoConfig, no singleton ResourceManager
      // resources
      ResourceManagerFactory.init(servletContext, tobagoConfig);

      // prepare themes
      tobagoConfig.resolveThemes();

      // theme config cache
      servletContext.setAttribute(ThemeConfig.THEME_CONFIG_CACHE, new HashMap());

    } catch (Throwable e) {
View Full Code Here

      // apply bugfix
      LayoutUtil.setFixLayoutTransparency(tobagoConfig.isFixLayoutTransparency());
     
      // prepare themes
      tobagoConfig.resolveThemes();

      // theme config cache
      ThemeConfig.init(servletContext);

    } catch (Throwable e) {
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.