Re: Is there a MountedMapper respecting better matching path names?

2012-08-03 Thread Martin Grigorov
Extend MountedMapper and override its #getCompatibilityScore() to return the right one depending on the second parameter. Some people use a dispatcher page: the page receives the initial call and then depending on the parameters throws RestartResponseException with the more specific one. On Thu,

Is there a MountedMapper respecting better matching path names?

2012-08-02 Thread Per Newgro
Hi, before i do this myself i would like to ask the community if someone has done this already. I want to mount pages at these urls: mountPage("/pages/${color}/advertise", AdvertisePage.class); mountPage("/pages/${color}/${niceColor}", ColoredPage.class); But because they both have 3 matching u