Skip to content

Introduce convenient boolean configuration attribute for enabling auto-refresh of Tiles definitions [SPR-7225] #11884

Closed
@spring-projects-issues

Description

@spring-projects-issues

Keith Donald opened SPR-7225 and commented

As of Tiles 2.1, Tiles has an boolean attribute that, if set to true, will turn on "auto refresh checking" for TIles definitions. This allows changes to Tiles definitions to be picked up in development without a server restart.

The current way of turning on a auto-refresh check is low-level. With Tiles 2.1, you set a custom tilesProperties on your TilesConfigurer with the "org.apache.tiles.definition.dao.LocaleUrlDefinitionDAO.CHECK_REFRESH" property set to true. (Reference: http://tiles.apache.org/2.1/framework/config-reference.html). I believe the mechanism in Tiles 2.2 for enabling this check is different.

As a user, I'd like a simple boolean property on TilesConfigurer to enable auto-refresh checks that works with Tiles 2.1 and > e.g.:

<beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
	<beans:property name="definitions">
		<beans:value>
			/WEB-INF/layouts/tiles.xml,
			/WEB-INF/views/*/tiles.xml
		</beans:value>
	</beans:property>
	<beans:property name="autoRefresh" value="true" />
</beans:bean>

Affects: 3.0.2

Referenced from: commits 0390c2b

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions