tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: EL Expression and Velocity templates
Date Wed, 19 May 2010 19:36:49 GMT
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