You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2008/12/22 14:25:37 UTC
[jira] Updated: (TILES-332) putAttribute does not work correctly
[ https://issues.apache.org/struts/browse/TILES-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli updated TILES-332:
-----------------------------------
Fix Version/s: 2.1.x
> putAttribute does not work correctly
> ------------------------------------
>
> Key: TILES-332
> URL: https://issues.apache.org/struts/browse/TILES-332
> Project: Tiles
> Issue Type: Bug
> Components: tiles-jsp (jsp support)
> Affects Versions: 2.1.1
> Environment: Tomcat 6.0.18, Struts 2.0.11.1, Struts2-Tiles-Plugin, Spring 2.5.6, Spring-Security
> Reporter: Udo Walker
> Fix For: 2.1.x
>
> Attachments: tilesbug.zip
>
>
> in Tiles version 2.0.5 I could do the following:
> <tiles:putAttribute name="content" type="string">
> <security:authorize ifNotGranted="ROLE_USER">
> show anonymous things....
> </security:authorize>
> <security:authorize ifAnyGranted="ROLE_USER">
> show welcome things for authorized user....
> </security:authorize>
> </tiles:putAttribute>
> The tag "security:authorize" is from the Spring security taglib.
> In the tiles version 2.0.5 the body of the putAttribute-Tag was interpreted the correct way, i.e. the first block was shown when you were not logged in and the 2nd block was shown, when you were logged in.
> Now in version 2.1.1 nothing is shown at all.
> But if I remove the type="string" attribute of the putAttribute-Tag then I see at least the content of the 1st block. But if I am logged in then the 2nd block is never shown. It looks like the custom tags are not interpreted any more in the new Tiles version.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.