Create a FilesystemResource class and make AssetFactory handle it -----------------------------------------------------------------
Key: TAP5-567 URL: https://issues.apache.org/jira/browse/TAP5-567 Project: Tapestry 5 Issue Type: Improvement Components: tapestry-core Affects Versions: 5.1.0.1 Reporter: Andy Pahne Priority: Minor I think T5 is missing an easy way to use filesytem resources as assets. Compare the thread on the mailing list: http://markmail.org/search/?q=T5%3A+How+to+load+image+Asset+from+filesystem#query:T5%3A%20How%20to%20load%20image%20Asset%20from%20filesystem+page:1+mid:2aags27qvtzher7z+state:results Just a suggestion: maybe it's easiest to create a Resource of type FilesystemResource (analogues to ContextResource and ClasspathResource) and let AssetFactory handle it. That way it would be possible to: @Inject @FilesystemProvider private AssetFactory assetFactory; public Asset getAsset() { Resource iconResource = new ClasspathResource(BASE_PATH + src); return assetFactory.createAsset(iconResource); } Or what do you think? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.