Thanks this worked. Am starting to like Tapestry way to build things (looking forwards to dig in deeper)...
Just one last question. I noticed that when building Resource implementations you pass in a path to Resource constructor and then another path to newResource(String), when creating the "real" asset. Why is that? Maybe in constructor you provide kind of root and with newResource you pass relative path-information? For your curiosity: I am partly from Guatemala, but grew up in Berlin and am living here a happy life :) Thiago H. de Paula Figueiredo wrote: > > Em Tue, 18 Nov 2008 18:19:24 -0300, aldana <[EMAIL PROTECTED]> escreveu: > >> But I cannot find the last step to ad it to the viable AssetSource. By >> default it seems that AssetSourceImpl is active which only supports >> context and classpath style. So how do I ad my new Asset type to the >> AssetSource and how do I register so I can use something like >> @Path("filesystem:/foo/bar.png") annotation? > > You do it through a contribution to the AssetSource service through > Tapestry-IoC. In a module class, add the following method: > > public static void contributeAssetSource(MappedConfiguration<String, > AssetFactory> configuration) { > configuration.add("filesystem", yourFilesystemAssetFactory); > } > > To know how something in Tapestry is configured, take a look at the > TapestryModule class and search for the contribute[ServiceName]() methods. > For example, the AssetSource is configured exactly like this: > > public void contributeAssetSource(MappedConfiguration<String, > AssetFactory> configuration, > @ContextProvider AssetFactory > contextAssetFactory, > @ClasspathProvider AssetFactory > classpathAssetFactory) > { > configuration.add("context", contextAssetFactory); > configuration.add("classpath", classpathAssetFactory); > } > >> manuel aldana >> software-engineering blog: http://www.aldana-online.de > > Just curious: your name is very Portuguese but your URL and university > information in your site is German . . . :) > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ----- manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/-T5--Providing-new-Asset-type-%28filesystem%29-tp20568440p20571556.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]