Guys,

I'm ashamed to admit that my problem was a classic case of RTFM, as there
was an example on the tapestry web site that fixed my dynamic Image asset
problem with just a few lines of code.

I placed my subscriberImage component on my page, and then added the
relevant method to my class:

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

public IAsset getSubscriberAsset() {

String pathToImage = getSubscriber().getPathToImage();
return new ExternalAsset(pathToImage,null);

}

Problem solved! Thanks again for all your helpful suggestions,

Regards, Brian.

Reply via email to