Skip to content

Cannot put <tiles:definition> inside <tiles:putAttribute> [SPR-14311] #18883

Closed
@spring-projects-issues

Description

@spring-projects-issues

Antonio Petrelli opened SPR-14311 and commented

When using Tiles 3 in JSP pages, if I have a mutable container I can do:
<tiles:putAttribute name="myname">
<tiles:definition template="...">
</tiles:definition>
</tiles:putAttribute>

This does not work with SpringConfigurer.

It seems that the problem relies in:
TilesConfigurer.SpringTilesContainerFactory.createContainer
The problem is that the DefinitionRenderer takes the non-decorated container.

Solution that I suggest:
override method createDecoratedContainer instead of createContainer.

Workaround: use your own TilesInitializer.


Affects: 4.2.6

Backported to: 4.2.7

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions