[ 
https://issues.apache.org/struts/browse/TILES-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44918#action_44918
 ] 

Udo Walker commented on TILES-333:
----------------------------------

No question. Just an improvment. I have some old JSP pages with following 
syntax:

...
<tiles:putAttribute name="footer" type="page"  value="/some/url.jsp"/>

If I try to run this with Tiles 2.0.5 it works fine and there are no errors. 
But if I try to run it with Tiles 2.1.1 then I get the error that the page 
renderer is mssing. 

In Tiles 2.1.x is this extension scheme:

org.apache.tiles.renderer.impl.BasicRendererFactory.TYPE_RENDERERS

with which you can add type renderers. In the default configuration there are 
renderes for the types "string", "definition" and "template". In Tile 1.x the 
type "page" had the same meaning as the type "template" in Tiles 2.x. So why 
not just add another type renderer for this type? It would be just to add the 
same type renderer to the type "template" and "page".

> Add an attribute renderer for "page" for backwards compatibility
> ----------------------------------------------------------------
>
>                 Key: TILES-333
>                 URL: https://issues.apache.org/struts/browse/TILES-333
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-jsp (jsp support)
>    Affects Versions: 2.1.x
>            Reporter: Udo Walker
>
> To be backwards compatible with Tiles 2.0.x you could add an attribute 
> renderer for the type "page" which works exactly like the renderer for the 
> type "template". Then you do not have to change the putAttribute tags 
> concerning the type attribute.

-- 
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