Zitat von Brian Long <[EMAIL PROTECTED]>:

> the "pathToImage" returned by my subscriber dataobject is exactly that, a
> path to the image. I'd like to use this in the asset component instead of
> the path:
>
> <asset name="subscriber" path="ognl:subscriber.pathToImage" />

Right, thats why I meant the parameter binding.

> > <component id="subscriberImage" type="Image">
> >         <binding name="image" value="getAsset('subscriber')">
> > </component>

Change to:
<component id="subscriberImage" type="Image">
        <binding name="image" value="subscriberAsset">
</component>

And impelement "IAsset getSubscriberAsset()" in the corresponding
class (i.e., the page class if the component is in a page).
There you can, for example, create the asset with an injected
asset factory.

http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/asset/AssetFactory.html

Regards,
Christian

P.S.: You might do what getSubscriberAsset() does in ognl, but perhaps
its better to make small steps.

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

Reply via email to