Hi David!
If I look at the classes implementing AssetFactory there is
ExternalUrlAssetFactory, maybe this is what you want
(file:///your-dir/your-asset.png)?
AssetModule.java configures all context asset factories so you have to
contribute
configuration.add("file", new ExternalAssetFactory("file"))
in your module, too. I have to admit, I did not test it, just browsing
the T5.4 sources.
Jens
Am 10/05/16 um 08:53 schrieb D.R.:
Hi @all,
i need a new asset domain to have access to the filesystem.
In the doc http://tapestry.apache.org/assets.html
they say you "may define a new AssetFactory and contribute it to the
AssetSource service configuration"
I have no idea how to deal with the two methods. Please help. What i
have to do in Order to get access to files on my filesystem?
public AssetFactory buildAssetFactory()
{
return new AssetFactory(){
@Override
public Asset createAsset(Resource arg0)
{
return null;
}
@Override
public Resource getRootResource() {
return null;
}
};
}
Kind regards
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org