You mean here:
protected WebResponse newWebResponse(HttpServletResponse servletResponse) {
return (getRequestCycleSettings().getBufferResponse() ? new
BufferedWebResponse(servletResponse) {
/**
* @see
org.apache.wicket.protocol.http.WebResponse#encodeURL(java.lang.CharSequence)
*/
@Override
public CharSequence encodeURL(CharSequence url) {
return TakpSessionBase.get().isRobot() ? url : super.encodeURL(url);
}
}: new WebResponse(servletResponse) {
/**
* @see
org.apache.wicket.protocol.http.WebResponse#encodeURL(java.lang.CharSequence)
*/
@Override
public CharSequence encodeURL(CharSequence url) {
return TakpSessionBase.get().isRobot() ? url : super.encodeURL(url);
}
});
}
??
2011/5/16 Martin Grigorov <[email protected]>:
> extend the url coding strategy you use and add the logic in its encode()
> method
>
> On Mon, May 16, 2011 at 5:18 PM, Martin Makundi <
> [email protected]> wrote:
>
>> Ok.. how to do the same in 1.4 ?
>>
>> **
>> Martin
>>
>> 2011/5/16 Martin Grigorov <[email protected]>:
>> > Pedro is talking about 1.5, not about 1.4.9 :-)
>> >
>> > On Mon, May 16, 2011 at 4:36 PM, Martin Makundi <
>> > [email protected]> wrote:
>> >
>> >> Hi!
>> >>
>> >> Sounds nice, how exactly?
>> >>
>> >> **
>> >> Martin
>> >>
>> >> 2011/5/16 Pedro Santos <[email protected]>:
>> >> > You can decorate applicaiton's root request mapper to set in the
>> >> > anticache parameter in the mapped URL. You can also add a listener
>> >> > invoking WebResponse#disableCaching for all your responses.
>> >> >
>> >> > On Mon, May 16, 2011 at 10:20 AM, Martin Makundi
>> >> > <[email protected]> wrote:
>> >> >> Hi!
>> >> >>
>> >> >> We are disabling versioning and this results in problems with
>> browsers
>> >> >> (chrome) which seems to load pages from cache.
>> >> >>
>> >> >> We would like to add something similar as in NonCachingImage to each
>> >> url.
>> >> >>
>> >> >> How can this be done centrally for whole application with minimal
>> >> change?
>> >> >>
>> >> >> Something like:
>> >> >> url = url + "wicket:antiCache=" + System.currentTimeMillis();
>> >> >>
>> >> >>
>> >> >> **
>> >> >> Martin
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [email protected]
>> >> >> For additional commands, e-mail: [email protected]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Pedro Henrique Oliveira dos Santos
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > 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]
>> >>
>> >>
>> >
>> >
>> > --
>> > Martin Grigorov
>> > jWeekend
>> > Training, Consulting, Development
>> > http://jWeekend.com <http://jweekend.com/>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]