Tried that but no luck because it misses the context root ... what i really 
need is something like <c:url />

Toby

----- Original Message ----
From: Josh Canfield <[EMAIL PROTECTED]>
To: Tapestry users <users@tapestry.apache.org>; Toby Hobson <[EMAIL PROTECTED]>
Sent: Friday, 2 May, 2008 11:34:48 PM
Subject: Re: Dynamic asset

> <img src=${photo.url}" /> but this causes the onActivate(Long) method to fall 
> over.

How are you generating the url? It sounds like it's relative to the
current page, and it should not be. Does <img src="/${photo.url}"/> do
what you want?

Josh

On Fri, May 2, 2008 at 2:04 PM, Toby Hobson <[EMAIL PROTECTED]> wrote:
> I am developing a photo sharing application and i would like to display a 
> photo whose url is retrieved dynamically. I have a property "photo" on my 
> ViewPhoto page and my ViewPhoto.tml is:
>
> <img src=${photo.url}" /> but this causes the onActivate(Long) method to fall 
> over. I've also tried <img src="${asset:context:photo.url}" /> but this 
> doesn't work because tapestry then looks for a file called photo.url. I know 
> I can inject a static asset into my page but how do I handle an asset which 
> is determined at runtime?
>
> Thanks
>
> Toby
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.



Reply via email to