>> I want to use UrlRewriter in order to make a page appear in two locations. >> Now my problem is that I am not able to link to both destinations >> (with t:pagelink for example). > > Why would you want/like that in first place?
The usecase is for tynamo's crud functionality. We want to provide generic Add/List/Edit pages inside our library. These should be mapped to a path configured by the developer.. but only if there is no page provided by the developer. Example: CONFIGURED_PATH = "admin/crud" If the developer added a page {tapestry.app-package}/pages/admin/crud/Add, this will be used. If the developer added no page, the default page available inside our custom librarymapping should be used. > Tapesty's URL rewrite works for incoming links by changing the Request > before it is decoded. For outcoming links, by changing generated Link > instances. Yes, I know. What I want is that in the above scenario, the developer is able to link to {tapestry.app-package}/pages/admin/crud/Add even if the page is the default page loaded from our library. >> Is there any way for me to make a page appear under two locations and >> be able to use it as it is available in both locations? > > Just don't use PageLink for the unrewritten link, using a plain <a> tag > instead. This would work, but seems ugly for our usecase - it would restrict developers too much. Do you have any hints how to accomplish the scenario? I've tried to overwrite ComponentClassResolver, but this didn't work. What I really want to do is to make tapestry think there IS a page at this location. Piero --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org