first of all if you want to prepend youre urls with a full path
then just do:

ApplicationSettings.setContextPath("FullUrl");

in the init of youre application.

Then all urls will be absolute.

getContextPath() is by default the contextpath of youre webapplication.
If you don't set it expliciet in youre initialize.

And that contextpath will be used for everything to prepend all urls.
Did we miss a spot?

So the PrependContextHandler uses it for markup parsing and making all urls /contextpath/ xxxxxx
and the WebRequestCodingStrategy will use it in its urlPrefix method.

If you want to have mixed results then yes you need to do something special.

Why would you by the way prefix urls with a full http://xxxx/ path?

johan


On 3/8/06, David Leangen < [EMAIL PROTECTED]> wrote:

Could somebody please tell me how the PrependContextPathHandler is
intended to be overridden (if at all)?


I would like to prepend my links with a static URL (like
"http://www.company.com/dir/"), and this looks like the place to do it.


Thank you!




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to