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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]