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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to