Cannot put <tiles:definition> inside <tiles:putAttribute> [SPR-14311] #18883
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
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
The text was updated successfully, but these errors were encountered: