Sure, components regard Assets as objects implementing IAsset. You can instanciate whatever implementation of this interface you wish, also your own, and pass it to your component:

<span jwcid="@MyComponent" asset="ognl:myAsset"/>

--- code ---

public IAsset getMyAsset() {
 return new MyAssetImplementation(...); // or new ContextAsset(...);
}

Cheers...
Ron


ציטוט [EMAIL PROTECTED]:

I have the context path for an image (i.e. images/other.jpg).

I need to create an IAsset in code and then add it to the actual component. Is that possible?

Andy




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




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

Reply via email to