Package org.thymeleaf.extras.tiles2.dialect

Examples of org.thymeleaf.extras.tiles2.dialect.TilesDialect


    @Bean
    public SpringTemplateEngine templateEngine(ClassLoaderTemplateResolver templateResolver) {
        SpringTemplateEngine templateEngine = new SpringTemplateEngine();
        templateEngine.setTemplateResolver(templateResolver);
        templateEngine.addDialect(new TilesDialect());
        return templateEngine;
    }
View Full Code Here


    SpringTemplateEngine templateEngine = new SpringTemplateEngine();
    Set<TemplateResolver> templateResolvers = new java.util.HashSet<TemplateResolver>();
    templateResolvers.add(webTemplateResolver());
    templateEngine.setTemplateResolvers(templateResolvers);
    Set<IDialect> additionalDialects = new HashSet<IDialect>();
    additionalDialects.add(new TilesDialect());
    templateEngine.setAdditionalDialects(additionalDialects);
    return templateEngine;
  }
View Full Code Here

        return result;
    }

    @Bean
    public ThymeleafTilesConfigurer tilesConfigurer() {
        ThymeleafTilesConfigurer tilesConfigurer = new ThymeleafTilesConfigurer();
        tilesConfigurer.setDefinitions(new String[] { "classpath:tiles/tiles-def.xml"});
        return tilesConfigurer;
    }
View Full Code Here

    return viewResolver;
  }

  @Bean
  public ThymeleafTilesConfigurer tilesConfigurer() {
    ThymeleafTilesConfigurer tilesConfigurer = new ThymeleafTilesConfigurer();
    return tilesConfigurer;
  }
View Full Code Here

TOP

Related Classes of org.thymeleaf.extras.tiles2.dialect.TilesDialect

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.