Package org.thymeleaf.spring4.expression

Examples of org.thymeleaf.spring4.expression.VariablesMapPropertyAccessor


    this.context.refresh();
    this.context.getBean(TemplateEngine.class).initialize();
    ITemplateResolver resolver = this.context.getBean(ITemplateResolver.class);
    assertTrue(resolver instanceof TemplateResolver);
    assertEquals("UTF-16", ((TemplateResolver) resolver).getCharacterEncoding());
    ThymeleafViewResolver views = this.context.getBean(ThymeleafViewResolver.class);
    assertEquals("UTF-16", views.getCharacterEncoding());
    assertEquals("text/html;charset=UTF-16", views.getContentType());
  }
View Full Code Here


    EnvironmentTestUtils.addEnvironment(this.context,
        "spring.thymeleaf.viewNames:foo,bar");
    this.context.register(ThymeleafAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class);
    this.context.refresh();
    ThymeleafViewResolver views = this.context.getBean(ThymeleafViewResolver.class);
    assertArrayEquals(new String[] { "foo", "bar" }, views.getViewNames());
  }
View Full Code Here

        ThymeleafAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    ThymeleafViewResolver thymeleafViewResolver = this.context
        .getBean(ThymeleafViewResolver.class);
    AbstractDeviceDelegatingViewResolver deviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            AbstractDeviceDelegatingViewResolver.class);
    assertNotNull(thymeleafViewResolver);
    assertNotNull(deviceDelegatingViewResolver);
    assertTrue(deviceDelegatingViewResolver.getViewResolver() instanceof ThymeleafViewResolver);
    assertNotNull(this.context.getBean(InternalResourceViewResolver.class));
    assertNotNull(this.context.getBean(ThymeleafViewResolver.class));
    assertTrue(deviceDelegatingViewResolver.getOrder() == thymeleafViewResolver
        .getOrder() - 1);
  }
View Full Code Here

    registry.addViewController("/signout");
  }

  @Bean
  public ViewResolver viewResolver(SpringTemplateEngine templateEngine) {
    ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
    viewResolver.setTemplateEngine(templateEngine);
    return viewResolver;
  }
View Full Code Here

    return messageSource;
  }

  @Bean
  public ViewResolver viewResolver(SpringTemplateEngine templateEngine) {
    ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
    viewResolver.setTemplateEngine(templateEngine);
    return viewResolver;
  }
View Full Code Here

    argumentResolvers.add(new SignedRequestArgumentResolver(environment.getProperty("facebook.appSecret")));
  }
 
  @Bean
  public ViewResolver viewResolver(SpringTemplateEngine templateEngine) {
    ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
    viewResolver.setTemplateEngine(templateEngine);
    return viewResolver;
  }
View Full Code Here

    return messageSource;
  }

  @Bean
  public ViewResolver viewResolver(SpringTemplateEngine templateEngine) {
    ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
    viewResolver.setTemplateEngine(templateEngine);
    return viewResolver;
  }
View Full Code Here

  }

  @Bean
  @Exposed
  public ThymeleafViewResolver thymeleafViewResolver() {
    ThymeleafViewResolver resolver = new ThymeleafViewResolver();
    resolver.setTemplateEngine( springTemplateEngine() );
    resolver.setOrder( 1 );
    resolver.setViewNames( new String[] {
        "th/*",
        ThymeleafViewResolver.REDIRECT_URL_PREFIX + "*",
        ThymeleafViewResolver.FORWARD_URL_PREFIX + "*" } );

    return resolver;
View Full Code Here

    @Value("${application.environment}")
    private String applicationEnvironment;

    @Bean
    public ThymeleafViewResolver thymeleafViewResolver() {
        ThymeleafViewResolver thymeleafViewResolver = new ThymeleafViewResolver();
        thymeleafViewResolver.setTemplateEngine(templateEngine());
        thymeleafViewResolver.setOrder(1);
        return thymeleafViewResolver;
    }
View Full Code Here

TOP

Related Classes of org.thymeleaf.spring4.expression.VariablesMapPropertyAccessor

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.