It’ll soon be a year for me working in a project that uses Tapestry as one of its core technologies. I’ve learnt many interesting things and also faced some challenges to do certain specific stuff. Internet has always been a good help tool, and now it’s time to give back my little bit.
Tapestry features the class RedirectException to break the execution at any time and bring the user to the URL you want. But that exception expects an URL, and if you want to reach an existing Tapestry page, you need the corresponging URL for it.
Fortunately, this post in the Tapestry wiki at apache.org showed me how to get that URL for Tapestry3. But I also needed that exception to work for Tapestry4, so I had to investigate how to do the same think using the HiveMind registry. Finally, I got the class working and I’ve contributed it to the wiki where I found the Tapestry3 one.
I hope this to be useful!