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 EL Expression and Velocity templates
Date Wed, 19 May 2010 15:44:47 GMT
Hello all,

Is it possible to use a an EL 
expression in a tiles definition and get it rendered correctly in a 
velocity template?, something like:

<put-list-attribute 
name="styleSheets">
           <add-attribute 
expression="${requestScope.url}/css/jquery-ui.css" type="velocity"/>
           <add-attribute 
expression="${requestScope.url}/css/master.css" type="velocity"/>
</put-list-attribute>

And then in the template

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

Maybe 
I'm missing something?.

Thanks in advance,

Xabier.



      

Mime
View raw message