Subject has to be wicketfilter of cource
Thijs wrote:
I'm migrating my app from 1.2.2 to 1.3 And the only real problem I
have is getting my rss feed up.
I'm adding the rss to the page head
<link title="foo.com" rel="alternate" type="application/rss+xml"...
I need the full path to the bookmarkable page to get this working (and
generate the all links inside the rss xml)
What I used to do was:
private String getFullUrl(
final String pageMapName,
final Class pageClass,
final PageParameters parameters)
{
HttpServletRequest
request=((ServletWebRequest)getRequest()).getHttpServletRequest();
final StringBuffer url = new StringBuffer();
url.append(getProtocolHeader(request.getProtocol()));
url.append(request.getServerName());
if(request.getServerPort()!=80)
{
url.append(":");
url.append(String.valueOf(request.getServerPort()));
}
url.append(urlFor(
pageClass,
parameters));
}
private String getProtocolHeader(String protocol)
{
if(protocol.equals("HTTP/1.1"))
return "http://";
else
return "";
}
Basically what is described on the wiki page (search for rss)
But using the Filter instead of the Servlet I'm missing part of the url.
urlFor only returns the last bit of the bookmarkable part for example:
Rss.class is mounted as /rss
and urlFor(Rss.class, new PageParameters()); returns 'rss' instead of
'/servlet/app/rss' (what it used to do in 1.2.x)
What do I have to change to get this working again?
cheers
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]