Hi, I'm tring to do a very simple thing, so I'm obviously missing something here (using Tapestry 4).
I have a method which needs to return an IAsset that points to an image (assume located somewhere in the web context) based on some other parameters. The method is passed the component that requires the asset. I don't want the asset to be formally declared via a component or page specification file, as it's determined on the fly. How do I do this? I've seen hints that point towards using ContextAsset in some way, but can not find an obvious way to create one (the constructor takes parameters that I don't know how to obtain, ie. "org.apache.hivemind.Resource" and "org.apache.hivemind.Location"). Likewise with the 'ContextAssetFactory', although I'm not sure if that's designed to be used outside of the core of Tapestry. Seems simple enough, but ... Any help gratefully recieved. (NB. If the code needed to reference an image stored somewhere on the classpath would this be a "private asset". If so, how might the code change?) Joe --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
