Hi
I've been fighting a bit with making a EncodingStrategy that can prepend
a keyword (cacheable etc) to the url depending on page state, however I
cant get the last bits to work heres what I got so far:
ApplicationClass:
@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {
protected IRequestCodingStrategy newRequestCodingStrategy() {
return new PrependKeywordEncodingStrategy(
new WebRequestCodingStrategy(), "cacheable");
}
};
}
I've posted the prepending strategy to pastebin:
http://pastebin.ca/1173557
So the idea are basically that there should be prepended "cacheable" to
all pages where the user are not logged in. That way I can set my apache
up to cache all pages with /cacheable prefix.
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]