Michael Lake wrote:
Basically, I want to be able to store my component .tml files in a
database.
I've been looking at the code, stepping through the debugger, and it
seems that I need to implement org.apache.tapestry.ioc.Resource or
perhaps extend AbstractResource.
ClasspathResouce and ContextResource are classes that already extend
AbstractResource. I assume these are what load the .tml files either
from classpath or from a file on the context.
I'm having trouble navigating the code to the point where I could tell
a component to choose a resource( content of .tml) from an alternate
storage. Can someone point me in the right direction?
I'm not afraid of editing tapesty base code if I have to, although I'd
rather not (perhaps I can inject a custom implementation?)
I'm scared I might be limited to providing the .tml content via
URL..is that so?
Thanks
Michael Lake
after more digging, i can see I need to provide an AssetFactory...
lets say
DatabaseAssetFactory
which could return a DatabaseResource which would implement Resource
I'll need something like @Marker(DatabaseProvider.class) which is in
InternalModule..
...I'll keep digging..
-mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]