so you're basically trying to map the same url to different pages you could try creating an advise similiar to the ComponentEventLinkEncoderMethodAdvice (used by the URLRewriter) and replace the page name with one of your contributed from your service. even depending on the current context.
(or even create an advice ComponentClassResolver) i guess the URLRewriter infrastructure should give you some hints how it could be achieved. haven't tried to do this myself, tough. g, kris Piero Sartini <li...@pierosartini.de> Gesendet von: p...@sartini-its.com 18.01.2010 14:17 Bitte antworten an "Tapestry users" <users@tapestry.apache.org> An Tapestry users <users@tapestry.apache.org> Kopie Thema Re: Load page/component without ComponentClassResolver > i'd create a service that has a mappedConfiguration > and contribute the default pages in the libraries' module > (wrapped in another custom object). > > if an user wanted to change the default he could do a > MappedConfiguration.override() to replace the default > contribution. This is a good idea and could work for (2). But I don't see how it would be possible for the user to change the path. Also it would be nicer for the user if he could just drop in his pages without the need for configuration. > i must admit i don't know what you mean when > you say 'load page withoug ComponentClassResolver'? > who is the user... a developer or the user of the app? Sorry for being not clear enough. The user in our case is the developer of the app. What I mean with ComponentClassResolver: If my default pages are located in org.comp.mylib.pages and I contribute a new LibraryMapping("mylib", "org.comp.mylib") to the ComponentClassResolver, they would be available in the root path. (eg. <webappcontext>/MyPage ). But what I want is to dynamically place my pages at a given location, configured by the user. Piero > > g, > kris > > > > > > Piero Sartini <li...@pierosartini.de> > Gesendet von: p...@sartini-its.com > 18.01.2010 12:55 > Bitte antworten an > "Tapestry users" <users@tapestry.apache.org> > > > An > Tapestry users <users@tapestry.apache.org> > Kopie > > Thema > Load page/component without ComponentClassResolver > > > > > > > > Hello list. > > I want to implement a library which provides standard pages for the > users application. > There are two requirements: > > 1. The user should configure the path where these pages will be available. > 2. The user should be able to override them > > I think there are 2 things needed to accomplish this: > 1. check if page is available at a given location > 2. if not, load page from some library path and substitude it to the > location from (1) > > Is something like this possible? Any hints? > > Piero > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- Sartini IT Solutions Piero Sartini mailto: p...@sartini-its.com url: http://www.sartini-its.com keyserver: (https|ldap)://keyserver2.pgp.com/ ------------------------------------------------------- Sartini IT Solutions Keltereistrasse 13 D - 85435 Erding Inhaber: Pierangelo Sartini Ust-Id: DE253841671 ------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org