You need to inject the asset on a public abstract method named getMyImage()
with a return type of IAsset.

-- 
Kevin


On 9/18/07 7:20 PM, in article
[EMAIL PROTECTED], "David Yu"
<[EMAIL PROTECTED]> wrote:

> Hi,
> I would like to get image to display and it is not working if I try to get
> asset from ognl.
> 
> <asset name="fish" path="context:/image/fish.gif"/>
> <component id="animalImage" type="Image">
>     <binding name="image" value="asset:myImage"/>
> </component>
> 
> Where getMyImage is a method to return a String "fish"
> 
> public String getMyImage(){
>     return "fish";
> }
> 
> Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to