[ 
https://issues.apache.org/struts/browse/TILES-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Udo Walker updated TILES-332:
-----------------------------

    Description: 
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.


  was:
in Tiles version 2.0.4 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.4 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.



> 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
>            Priority: Blocker
>
> 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.

Reply via email to