Re: Mounting URLs with locale prefix

2012-08-28 Thread asfernandes
I succedded to make it work without mess with autoLinking seeting, but it's just for my case. I believe this is a Wicket bug, but I have no idea on a better fix. I installed a new RequestCycleProvider to override the UrlRenderer. I recreated UrlRenderer#renderContextRelativeUrl replacing: for

Re: Mounting URLs with locale prefix

2012-08-28 Thread asfernandes
Martin Grigorov-4 wrote The segment with the locale should be removed by the IRequestMapper as LocaleFirstMapper does. But on UrlRenderer#renderContextRelativeUrl, getBaseUrl() shows pt-br/home when I'm accessing http://localhost:8990/Site/pt-br/home This caused my tags to be rewritten

Re: Mounting URLs with locale prefix

2012-08-27 Thread asfernandes
Martin, Thanks for the Mapper hint, but things still don't work well in my case (html files without wicket:id tags). I had it almost working, but I need to call getMarkupSettings().setAutomaticLinking(true), but this caused another problem: Wicket is putting an onclick in tags inside