Re: UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
IIRC the '.' is set temporarily to overcome a bug in Tomcat(and Jetty?!) which produced bad URL after passing http://localhost to HttpServletResponse.encodeURL() This bug has been fixed in 7.0.16, I think. This code has been added by Peter Ertl, so maybe he remembers better the case. On Tue, Oct 18, 2011 at 5:10 PM, manuelbarzi wrote: > Matej, Igor? > . > > > > On Tue, Oct 18, 2011 at 3:57 PM, Per Newgro wrote: >> Thanks for reply manuel, >> >> sorry for being not clear on this. While debugging i've found that already. >> But why is this "." be set. That's not clear to me. >> >> Per >> >> Am 18.10.2011 15:47, schrieb manuelbarzi: >>> >>> Component.urlFor - calls -> RequestCycle.urlFor - calls -> >>> UrlRenderer.renderUrl - if relative url, calls -> >>> UrlRenderer.renderRelativeUrl -> which may append / return the >>> misterious "." >>> . >>> >>> >>> On Tue, Oct 18, 2011 at 2:50 PM, Per Newgro wrote: Hi, i try to add a sitemap for my app. When i add the loc node in sitemap-url this way to my ListView item.add(new Label("locNode", RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, homePageParameters)); the generate xml looks like this http://localhost:8080/. I've debugged the code but don't get a real clue why this is adding a dot in relative url processing. Can someone please give me a hint? Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
Matej, Igor? . On Tue, Oct 18, 2011 at 3:57 PM, Per Newgro wrote: > Thanks for reply manuel, > > sorry for being not clear on this. While debugging i've found that already. > But why is this "." be set. That's not clear to me. > > Per > > Am 18.10.2011 15:47, schrieb manuelbarzi: >> >> Component.urlFor - calls -> RequestCycle.urlFor - calls -> >> UrlRenderer.renderUrl - if relative url, calls -> >> UrlRenderer.renderRelativeUrl -> which may append / return the >> misterious "." >> . >> >> >> On Tue, Oct 18, 2011 at 2:50 PM, Per Newgro wrote: >>> >>> Hi, >>> >>> i try to add a sitemap for my app. When i add the loc node in sitemap-url >>> this way to my ListView >>> >>> item.add(new Label("locNode", >>> >>> RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, >>> homePageParameters)); >>> >>> >>> the generate xml looks like this >>> >>> http://localhost:8080/. >>> >>> >>> I've debugged the code but don't get a real clue why this is adding a dot >>> in >>> relative url processing. >>> >>> Can someone please give me a hint? >>> Thanks >>> Per >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
Thanks for reply manuel, sorry for being not clear on this. While debugging i've found that already. But why is this "." be set. That's not clear to me. Per Am 18.10.2011 15:47, schrieb manuelbarzi: Component.urlFor - calls -> RequestCycle.urlFor - calls -> UrlRenderer.renderUrl - if relative url, calls -> UrlRenderer.renderRelativeUrl -> which may append / return the misterious "." . On Tue, Oct 18, 2011 at 2:50 PM, Per Newgro wrote: Hi, i try to add a sitemap for my app. When i add the loc node in sitemap-url this way to my ListView item.add(new Label("locNode", RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, homePageParameters)); the generate xml looks like this http://localhost:8080/. I've debugged the code but don't get a real clue why this is adding a dot in relative url processing. Can someone please give me a hint? Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
Component.urlFor - calls -> RequestCycle.urlFor - calls -> UrlRenderer.renderUrl - if relative url, calls -> UrlRenderer.renderRelativeUrl -> which may append / return the misterious "." . On Tue, Oct 18, 2011 at 2:50 PM, Per Newgro wrote: > Hi, > > i try to add a sitemap for my app. When i add the loc node in sitemap-url > this way to my ListView > > item.add(new Label("locNode", > RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, > homePageParameters)); > > > the generate xml looks like this > > http://localhost:8080/. > > > I've debugged the code but don't get a real clue why this is adding a dot in > relative url processing. > > Can someone please give me a hint? > Thanks > Per > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
Hi, i try to add a sitemap for my app. When i add the loc node in sitemap-url this way to my ListView item.add(new Label("locNode", RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, homePageParameters)); the generate xml looks like this http://localhost:8080/. I've debugged the code but don't get a real clue why this is adding a dot in relative url processing. Can someone please give me a hint? Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org