You can create a contextasset by code or you can use a Any component inside 
that foreach like:
 <img jwcid="@Any" src="ognl:themethodthatwillreturnyourpath" />

 On 7/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 
> 
> 
> I have an entity with a field that is a path to an image
> for instance
> item.getImage(); will return "/images/image1.jpg"
> what i am trying to do is set this in a page as an image.
> I have tried using the image component but couldn't figure out a way to 
> set an asset at runtime, the problem is that the image component wiill take 
> an asset and not a simple path as a source to ensure that the image exists.
> What i want to achieve, is that for a ForEach element to be able to insert 
> an image from a path that is included as a string in a field of my objects.
> Thanks a lot in advance
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to