In our application (portal) we have a modal dialog that we have to use. In
this modal dialog we put a page. Because the portal consists of iframes, we
have to use relative urls in the modal dialog. For example instead of:

?wicket:interface=:4:border:_body:dialogContainer:contentPanels:infoTextContentPanel:ajaxEnabledContainer:externalLinks:0:externalLink::IResourceListener::

we have to use:

*/application-uri/servlet-name/*
?wicket:interface=:4:border:_body:dialogContainer:contentPanels:infoTextContentPanel:ajaxEnabledContainer:externalLinks:0:externalLink::IResourceListener::

but only for certain pages.

what we've done now is create custom components that prepend the
application-uri + the servlet-name to the URL. For example for a link we
override onComponentTag() and prepend the strings to the url:

url = RequestUtils.getBaseUrl(this) + url;


Is there a more generic way to do this? for example let's say: When the
Responsepage is of type "A" then modify the url accordingly. 

I've had a look at pathForTarget(IRequestTarget requestTarget) of class
WebRequestCodingStrategy, but i think the CodingStrategy is only valid for
the first time the page is called and not for every request within the page.
For this i would have to mount every possible request-url within the page?

Any suggestions?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/custom-url-for-specific-pages-tp3881166p3881166.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to