Hi Vytautas, Honestly I don't know if it's the same problem but I did went through lots of debugging due to urlFor a couple of months ago. I posted an issue but actually haven't followed its progress (it's still open).
https://issues.apache.org/jira/browse/WICKET-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Just thought it would be relevant mentioning. Francisco 2009/8/24 Vytautas Čivilis <vytautas.civi...@gmail.com>: > Hi. > > I'm using RequestCycle urlFor method for building my link in this > fashion: getRequestCycle().urlFor(this, ILinkListener.INTERFACE, > parameters). > > The idea is to have link with default behavior (implement onclick), but > with the explicitly set parameters too. The parameters are being asked > by 3rd party library (in particular - thickbox). > > at RequestCycle 947: > AppendingStringBuffer buff = new AppendingStringBuffer(url); > WebRequestEncoder encoder = new WebRequestEncoder(buff); > > This WebRequestEncoder doesn't check, if the parameters are already > present in the url provided. > > In my case, the url from CharSequence url = encodeUrlFor(target); is > already like that > ?wicket:interface=:2:admin:container:tabbedPanel:panel:apartments:0:apartmentAddressEditLink:1:ILinkListener:: > > What WebRequestEncoder does when appending parameters provided > explicitly - it simply appends "?" mark and then the parameters list. > > So resulting url is incorrect and doesn't work: > ?wicket:interface=:2:admin:container:tabbedPanel:panel:apartments:0:apartmentAddressEditLink:1:ILinkListener::?height=300&width=300 > > (notice leading ?height=300&width=300). > > Wicket 1.4.0. > > Am I doing something wrong here? What could be possible solutions to > overcome this? > > Vytautas > > --------------------------------------------------------------------- > 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