[ 
https://issues.apache.org/struts/browse/TILES-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40379
 ] 

Antonio Petrelli commented on TILES-126:
----------------------------------------

This kind of override could be done:
- at container level, creating a new method with the signature:
render(String definition, String template, Object... requestItems)
where the "template" parameter, if not null, will override the one specified in 
the definition itself;
- at ComponentContext level, adding a "template" property (I don't think that 
putting it inside the "attributes" map is a good idea, the template is not an 
attribute).

> Allow to override template when inserting a definition
> ------------------------------------------------------
>
>                 Key: TILES-126
>                 URL: https://issues.apache.org/struts/browse/TILES-126
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-core, tiles-jsp (jsp support)
>    Affects Versions: 2.0.1
>            Reporter: Antonio Petrelli
>
> Currently, if one wants to insert a definition that has the same attributes 
> as another one but a different template, he/she must:
> - create a custom definition, usually by using <tiles:definition>
> - insert this custom definition in the page.
> There should be the possibility to insert a definition but specifying a 
> different template, with a syntax like:
> <tiles:insertDefinition name="definitionName" template="/my/new/template.jsp" 
> />

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to