Thiago, 2011/2/4 Thiago H. de Paula Figueiredo <thiag...@gmail.com>: > On Wed, 02 Feb 2011 07:04:54 -0200, Olaf Tomczak <olaf.tomc...@gmail.com> > wrote: > >> Hello, > > Hi! > >> I recently migrated to Tapestry 5.2 and decided to re-implement >> URLRewriter rules as LinkTransformers. Unfortunately there's a >> problem. I have to rewrite all requests to *.html pages and route them >> to my Index page (since the application was previously using html >> pages and some users have it bookmarked). The >> PageRenderLinkTransformer works for this purpose except for index.html >> page. Since Index is a page name, requests to index.html are >> automatically treated as component event requests (component html of >> Index page) and are not passed through my transformer. Is there a way >> to work around this issue? > > I guess you hit a scenario which is not covered in LinkTransforms, as they > only deal with event URL -> event URL and page URL -> page URL > transformations, but not event URL (anything with a dot in it) -> page > render URL nor vice-versa.
Thanks for confirming this for me. I've worked around the problem by renaming "start page" to Main and creating PageRenderLinkTransformer transforming /index to /main. I guess this works fine and does not require using an external url rewriter. Thanks, Olaf Tomczak > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org