tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xabier Burgos Gimeno <xabier.bur...@yahoo.es>
Subject Re: EL Expression and Velocity templates
Date Thu, 20 May 2010 09:43:21 GMT
No use, I get "$tiles.render($styleSheet)" rendered. It makes no difference if I use type="string"
or type="velocity" .



----- Mensaje original ----
De: Antonio Petrelli <antonio.petrelli@gmail.com>
Para: users@tiles.apache.org
Enviado: miƩ,19 mayo, 2010 20:36
Asunto: Re: EL Expression and Velocity templates

2010/5/19 Xabier Burgos Gimeno <xabier.burgos@yahoo.es>:
>           <add-attribute
> expression="${requestScope.url}/css/jquery-ui.css" type="velocity"/>

Use type="string"

> $tiles.importAttribute({"name":"styleSheets"})
> #foreach($styleSheet in $styleSheets)
>            <link type="text/css"
> rel="stylesheet" href="${styleSheet.value}"/>
> #end

Do this:
<link type="text/css" rel="stylesheet" href="$tiles.render($styleSheet)"/>

HTH
Antonio



      

Mime
View raw message