diff --git a/build.gradle b/build.gradle index f126d8a30be..a29d52ed1d4 100644 --- a/build.gradle +++ b/build.gradle @@ -97,6 +97,7 @@ configure(allprojects) { project -> "http://commons.apache.org/proper/commons-codec/apidocs/", "http://commons.apache.org/proper/commons-dbcp/apidocs/", "http://portals.apache.org/pluto/portlet-2.0-apidocs/", + "http://tiles.apache.org/tiles-request/apidocs/", "http://tiles.apache.org/framework/apidocs/", "http://aopalliance.sourceforge.net/doc/", "http://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/", diff --git a/spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java b/spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java index 794b1534b78..01f37c83bfa 100644 --- a/spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java +++ b/spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -100,6 +100,20 @@ import org.springframework.web.context.ServletContextAware; * The values in the list are the actual Tiles XML files containing the definitions. * If the list is not specified, the default is {@code "/WEB-INF/tiles.xml"}. * + *
Note that in Tiles 3 an underscore in the name of a file containing Tiles + * definitions is used to indicate locale information, for example: + * + *
+ * <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"> + * <property name="definitions"> + * <list> + * <value>/WEB-INF/defs/tiles.xml</value> + * <value>/WEB-INF/defs/tiles_fr_FR.xml</value> + * </list> + * </property> + * </bean> + *+ * * @author mick semb wever * @author Rossen Stoyanchev * @since 3.2 diff --git a/src/asciidoc/index.adoc b/src/asciidoc/index.adoc index 0dc55a588b2..e49c4a95666 100644 --- a/src/asciidoc/index.adoc +++ b/src/asciidoc/index.adoc @@ -33380,17 +33380,11 @@ This section focuses on Spring's support for Tiles v3 in the ==== - [[view-tiles-dependencies]] ==== Dependencies -To be able to use Tiles you have to have a couple of additional dependencies included in -your project. The following is the list of dependencies you need. - -* `Tiles version 2.1.2 or higher` -* `Commons BeanUtils` -* `Commons Digester` -* `Commons Logging` - +To be able to use Tiles, you have to add a dependency on Tiles version 3.0.1 or higher +and http://tiles.apache.org/framework/dependency-management.html[its transitive dependencies] +to your project. [[view-tiles-integrate]] @@ -33403,7 +33397,7 @@ look at the following piece of example ApplicationContext configuration: [source,xml,indent=0] [subs="verbatim,quotes"] ---- -