Hi Boris, Have you consider using tapestry.application-folder? http://tapestry.apache.org/configuration.html#Configuration-tapestry.applicationfolder
If you are using two instances of the same application using tapestry.application-folder would be your best option. Is that the case? or you want to allow access from both domains to the same instance? Alejandro. On Mon, May 27, 2013 at 9:10 AM, Boris Horvat <horvat.z.bo...@gmail.com> wrote: > So my idea was that in my class that contributes to the tapestry url I > would have 2 methods > > decodePageRenderRequest - that looks for the page under given subfolder > > and transformPageRenderLink - that strips the actual folder (since i need > to put it or pagelink component would fail) > > My assumption is that they would work together to generate false link > (transformPageRenderLink ) that would know how to find the right page > (decodePageRenderRequest). However I am still getting "Unable to resolve to > a page name". Any ideas? > > Cheers > > > On Mon, May 27, 2013 at 1:38 AM, Boris Horvat <horvat.z.bo...@gmail.com>wrote: > >> I do have one more question if anyone has an idea how to solve it. >> >> My Index page is ok as nothing is pointing to it. However all of the other >> pages are now at problem since they reside inside of a folder so when I use >> >> t:pagelink t:page="MyPageThatIsNowInFolder1" >> >> it complains that it cant find this page and if I add >> >> t:pagelink t:page="folder1/MyPageThatIsNowInFolder1" >> >> then it link is broken since it will try to go to >> >> folder1/folder1/MyPageThatIsNowInFolder1 >> >> Any ideas how I can save the old links (ie t:pagelink >> t:page="MyPageThatIsNowInFolder1") and still use pagelink component? >> >> Cheers >> >> >> >> On Mon, May 27, 2013 at 1:18 AM, Boris Horvat >> <horvat.z.bo...@gmail.com>wrote: >> >>> I spoke too soon. A bit of testing got me the answer that I can just >>> insert the folder as a string. >>> >>> Cheers >>> >>> >>> On Mon, May 27, 2013 at 1:05 AM, Boris Horvat >>> <horvat.z.bo...@gmail.com>wrote: >>> >>>> Hi all, >>>> >>>> I was looking into this example here >>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ >>>> however >>>> I am not sure if what I want is possible as I am not really sure how to do >>>> it. >>>> >>>> What I want to do is separate my application into 2 folders but I need >>>> to keep my urls as they are. The example of my mapping should be >>>> >>>> www.my-website.com = www.my-website.com/folder1/ >>>> www.my-website.com/mypage = www.my-website.com/folder1//mypage >>>> >>>> custom.my-website.com=custom.my-website.com/folder2 >>>> custom.my-website.com/mypage=custom.my-website.com/folder2/mypage >>>> >>>> What i am puzzled by is is it possible to somehow insert the path into >>>> the url or should I try to return the actual page when I see some path? >>>> >>>> So how would you implement this? >>>> >>>> Cheers >>>> -- >>>> Sincerely >>>> *Boris Horvat* >>>> >>> >>> >>> >>> -- >>> Sincerely >>> *Boris Horvat* >>> >> >> >> >> -- >> Sincerely >> *Boris Horvat* >> > > > > -- > Sincerely > *Boris Horvat* --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org