Well, assuming you're on T4 (and hence have HiveMind support built-in by default) you can do this:

1. Create a GlobalAssetManager service.

2. Create an example.globalAssets configuration-point and hand it to the GlobalAssetManager service.

3. Create a org.apache.tapestry.binding.BindingFactory service implementation (extend org.apache.tapestry.binding.AbstractBindingFactory) and have it locate the requested asset via your GlobalAssetManager service and return an implementation of org.apache.tapestry.IBinding that returns said asset.

4. Add your GlobalAssetBindingFactory to the tapestry.bindings.BindingFactories HiveMind configuration-point with a prefix like "global-asset".

Something like that. Would that work for you?

I could actually use something like this for my own projects... Guess I'll have a go at it. Let me know if you're interested in the code.

-Filip

Bode, Bianca skrev:
Hi all,

I have a lot of images on another server that need to be incorporated in
my application.
Instead of defining the external assets on every page I need them, can I
have them all in one 'properties' file and reference them from there?

Kind regards, Bianca

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

Reply via email to