Thx for advice - I tried to use the mentioned gzip filter and it seems to work :)
I have not detected any problem in my application.
I have used jetty\'s org.mortbay.servlet.GzipFilter , which I mapped to \"text/html\" response types only.
This filter is placed BEFORE wicket-filter
I added this part of code into web.xml, and it works great for now.
<!-- ==================================================================
1. filter: Gzip Jetty filter
===================================================================== -->
<filter>
<filter-name>GzipFilter</filter-name>
<filter-class>org.mortbay.servlet.GzipFilter</filter-class>
<init-param>
<param-name>mimeTypes</param-name>
<param-value>text/html</param-value>
</init-param>
<!--init-param>
<param-name>bufferSize</param-name>
<param-value>8192</param-value>
</init-param-->
<!--init-param>
<param-name>minGzipSize</param-name>
<param-value>some number</param-value>
</init-param-->
<!--init-param>
<param-name>excludedAgents</param-name>
<param-value>some pattern</param-value>
</init-param-->
</filter>
and later url-mapping ........
<filter-mapping>
<filter-name>GzipFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Maybe it can work for your applications without any problems too.
As another solution, I will try to look at IResponseFilter next.
For now, thanx for advice ;)
Artur W. wrote:
>
>
> Nino.Martinez wrote:
>>
>> At our wug CPH yesterday we talked about something similar (ajax), I
>> think theres no direct way currently. However you can setup a filter
>> which does that.
>>
>> http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
>>
>
> This filter doesn't work with Wicket because wicket very often close the
> stream and you get the:
> if (closed) {
> throw new IOException(
> "Cannot write to a closed output stream");
> }
>
> I asked about the same here:
> https://issues.apache.org/jira/browse/WICKET-1240
>
> Artur
>
>
--
View this message in context:
http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16915538.html
Sent from the Wicket - User mailing list archive at Nabble.com.