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 2007/01/28 18:40:21 UTC
[jira] Moved: (TILES-47) from putLIst
returns ComponentAttribute instead of List
[ https://issues.apache.org/struts/browse/TILES-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli moved SB-34 to TILES-47:
-----------------------------------------
Fix Version/s: (was: 2.0)
2.0.0
Component/s: (was: Tiles)
core
Affects Version/s: (was: 2.0)
2.0.0
Workflow: Struts (was: jira)
Key: TILES-47 (was: SB-34)
Project: Tiles (was: Sandbox)
> <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: 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.