You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by petros <pe...@cypoz.com> on 2007/05/20 13:46:40 UTC

Re: How to load a image dynamiclly in tapestry5.0.4

This is how I used Asset for an image in T5.0.4
Java class
@Inject
@Path("context:images/banners/new_logo.jpg")
private Asset logoImage;	

HTML code
prop:logoImage 

Petros


Allen Guo wrote:
> 
> Hi All,
> 
> I want to show the ProductDetail page with product image. It looks like
>  p_001.jpg .
> You know, every product has different image name,so I need to pass the
> string 'p_001.jpg' to the corresponding page.
> As result the img tag should look like  ${product.image}  or
> I can use Asset to do it.
> 
> But I tried to do it using the first approach, exception occured.
> And I don't know how to the second approach.
> Can anyone give me an idea?
> 
> Thank in advance
> Allen Guo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-load-a-image-dynamiclly-in-tapestry5.0.4-tf3784430.html#a10705166
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org