Also, I can't seem to find out how to reference this asset in the .tml.
Tried a lot similar to this, nothing worked:

<img src="asset:banner"/>

Also tried annotating "private Asset banner" with @Property, no diffference.

The only thing I got working is this: <img
src="asset:context:company/1/img/banner.gif"/>

But this doesn't work for me, becuse I need to compute each customers image
path on each request.

On Wed, Aug 6, 2008 at 3:33 PM, Inge Solvoll <[EMAIL PROTECTED]>wrote:

> Hi!
>
> I would like to do something like this, but this syntax obviously doesn't
> work. The ${bannerPath} seems to be pointing to a "symbol", which obviously
> isn't a page property.
> Is there a similar way to do this?
>
>   @Inject
>   @Path("${bannerPath}")
>   private Asset banner;
>
>
>   public String getBannerPath() {
>     return "context:/company/1/banner.gif";
>   }
>

Reply via email to