Package org.apache.myfaces.tobago.config

Examples of org.apache.myfaces.tobago.config.TobagoConfig


      LOG.info("debug-mode=" + debugMode);
    }
    // theme
    String requestTheme
        = (String) externalContext.getRequestParameterMap().get("tobago.theme");
    TobagoConfig config = TobagoConfig.getInstance(facesContext);
    this.theme = config.getTheme(requestTheme);
    if (LOG.isInfoEnabled()) {
      LOG.info("theme='" + theme.getName() + "' from requestParameter "
          + "tobago.theme='" + requestTheme + "'");
    }
    updateId();
View Full Code Here


    }

    if (LOG.isDebugEnabled()) {
      LOG.debug("2nd");
    }
    TobagoConfig tobagoConfig = (TobagoConfig)
        getServletContext().getAttribute(TobagoConfig.TOBAGO_CONFIG);

    if (tobagoConfig == null) { // TobagoServletContextListener is not called until now!
      final String className = TobagoServletContextListener.class.getName();
      if (LOG.isDebugEnabled()) {
View Full Code Here

    }
  }

  private String remap(ServletRequest request, String requestURI) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    TobagoConfig config = TobagoConfig.getInstance(facesContext);
    MappingRule mappingRule = config.getMappingRule(requestURI);
    if (mappingRule == null) {
      return requestURI;
    }
    for (Iterator i = mappingRule.getAttributes().iterator(); i.hasNext();) {
      Attribute attribute = (Attribute) i.next();
View Full Code Here

    language = application.getDefaultLocale();
    countries.init(language);
    facesContext.getExternalContext().getSession(true);
    initLanguages();

    TobagoConfig tobagoConfig = TobagoConfig.getInstance(facesContext);
    List<Theme> themes = new ArrayList<Theme>(tobagoConfig.getSupportedThemes());
    themes.add(0, tobagoConfig.getDefaultTheme());
    themeItems = new ArrayList<SelectItem>();
    for (Theme theme : themes) {
      themeItems.add(new SelectItem(theme, theme.getDisplayName()));
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.config.TobagoConfig

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.