I use RequestUtils to convert the path to an absolute path, seems to work like a charm :-)

import org.apache.wicket.protocol.http.RequestUtils;

RequestUtils.toAbsolutePath(relativePath);

Regards
// Daniel


On 2008-03-04, at 12:17, Paolo Di Tommaso wrote:

Guys,

I've some Wicket (1.3.x) pages for which I need to get the absolute path (to
be included in a email message).

With wicket 1.2.x the call RequestCycle.get().urlFor(null,pageClass
,parameters).toString() was retuning the page absolute path (containing the application context) but migrating to 1.3.x it returns the RELATIVE path to
the current context.

Ok, this is good to a lot of reasons (proxy problems, and so on .. ).

But how to get the absolute path for a bookmarkable page?

Thank you,

/ Paolo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to