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

Antonio Petrelli closed TILES-47.
---------------------------------


> <tiles:importAttribute> from putLIst returns ComponentAttribute instead of 
> List
> -------------------------------------------------------------------------------
>
>                 Key: TILES-47
>                 URL: https://issues.apache.org/struts/browse/TILES-47
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.0
>         Environment: Mac OS X 10.4.7, Java SE 1.5.0_06, JBoss 4.0.4 GA EJB3, 
> JBoss Seam 1.0.1 GA, JSTL 1.1
>            Reporter: Marcello Teodori
>         Assigned To: Antonio Petrelli
>             Fix For: 2.0.0
>
>
> when adding a list of attributes in a tiles definition with putList then when 
> I try to get the list of values from a JSP I get a ClassCastException.
> Investigating further the returned object is of type ComponentAttribute, so I 
> had to get its "value" JavaBean attribute to iterate over it as a List, that 
> is:
>     <tiles:importAttribute name="stylesheets" ignore="true"/>
>     <c:forEach var="stylesheet" items="${stylesheets.value}">
>     <link rel="stylesheet" type="text/css" media="all" 
> href="${pageContext.request.contextPath}/${stylesheet}" />
>     </c:forEach>
> while from the documentation in Struts Tiles I should have used 
> ${stylesheets} instead of ${stylesheets.value}

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