Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

How to dynamically detemine the asset path?

Hilco Wijbenga

2010-03-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

I used to have (in my .tml):

<img src="${asset:image.png}" ... />

which of course worked fine.

To support multiple colours I need a little bit more flexibility so I
tried to do

<img src="${asset:image_${variable}.png}" ... />

which failed miserably because T5 doesn't do variable expansion inside
variable expansions. Not entirely unreasonable, I suppose. :-)

I had a look at T5's Request object but it doesn't tell me the asset
path (AFAICT). How do I do this without completely hard coding the
asset path?

Cheers,
Hilco

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.