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 2011/05/06 10:59:09 UTC

[jira] [Commented] (TILES-523) El-Support is not available for element in list-attribute

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

Antonio Petrelli commented on TILES-523:
----------------------------------------

EL not evaluated in add-attribute: it is a bug, you're right.
About <item>, this is no more supported and it is maintained only for backward compability, only Tiles 1.x existing features work.

> El-Support is not available for element in list-attribute
> ---------------------------------------------------------
>
>                 Key: TILES-523
>                 URL: https://issues.apache.org/jira/browse/TILES-523
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-el
>    Affects Versions: 2.2.2
>            Reporter: Thomas Champagne
>
> I test the following configuration :
> {code:xml}
> <definition name="test.el" template="/WEB-INF/tiles/test.jsp">
>     <put-attribute name="test" expression="test = ${mytest}"/>
>     <put-list-attribute name="listAttributeTest">
>         <add-attribute expression="listAttributeTest = ${mytest}"/>
>     </put-list-attribute>
>     <put-list-attribute name="listMenuTest">
>         <item value="Test" link=${mytest}"/>
>     </put-list-attribute>
> </definition>
> {code}
> The _test.el_ template have three attribute : 
> The first attribute _test_ is evaluated correctly. No problem for this attribute.
> The second _listAttributeTest_ contains a list attribute. The first attribute in the list have an el expression but it is not evaluated because in the source code, the attribute value is displayed. 
> The third attribute _listMenuTest_ contains a list attribute with bean item. In the source code, bean's properties are never evaluated.
> Do you think is it possible to evaluate all properties in the tile defintion ?
> Thomas

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira