Hi Wolf,
yes I got inputCalendar up and running without the gzip filter on top and
right now also with gzip stuff.
By the way the previous error was caused by mess in my web.xml sorry for
that everyone.
As for more detail on how it is working with my app in no gzip filter
option,
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
...
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
<context-param>
<param-name>facelets.BUFFER_SIZE</param-name>
<param-value>-1</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>
/WEB-INF/taglibs/tomahawk.taglib.xml
</param-value>
</context-param>
...
<filter>
<filter-name>securityFilter</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>
<filter>
<filter-name>clickstreamFilter</filter-name>
<filter-class>com.opensymphony.clickstream.ClickstreamFilter</filter-class>
</filter>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>10m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
...
<filter-mapping>
<filter-name>securityFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>faces</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>clickstreamFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
...
<listener>
<listener-class>com.opensymphony.clickstream.ClickstreamListener</listener-class>
</listener>
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
...
<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
...
</web-app>
tomahawk.taglib.xml:
<?xml version="1.0"?>
<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet
Taglib 1.0//EN"
"http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
<facelet-taglib>
<!-- author: [EMAIL PROTECTED] -->
<namespace>http://myfaces.apache.org/tomahawk</namespace>
<tag>
...
<tag-name>inputCalendar</tag-name>
<component>
<component-type>org.apache.myfaces.HtmlInputCalendar</component-type>
</component>
</tag>
...
</facelet-taglib>
my.xhtml:
...
<t:inputCalendar id="myDate" value="#{myMBean.myDate}"
renderAsPopup="true" size="15"
renderPopupButtonAsImage="true"
required="true"/>
...
myMBean.java:
...
private Date myDate = DateUtil.getToday();
public Date getMyDate() {
return this.myDate;
}
public void setMyDate(Date myDate) {
this.myDate = myDate;
}
...
[+ standard managed bean configuration in faces-config.xml]
The configuration is exactly the same for running this component with and
without the gzip filter on top of it. As for the libs: MyFaces 1.2.0,
Tomahawk 1.1.6, Facelets 1.1.13, Tomcat 6.0.14
Hope it helped some how.
Piotr.
Wolf Benz-2 wrote:
>
> Hi Piotr,
>
> I'm surprised that you got to work inputCalndar at all, without teh
> gzip stuff on top.
> I've been trying to get that work for over a month now, but to no
> avail for teh combo MF1.2 - Facelets 1.1.13 - Toma 1.16
> Are you sure it works without the GZIP?
> & If so, could you share your setup in more detail with us? (web.xml
> taglibs declared? If so, with what files; if not, with what jar, ...)
> Thanks,
> -Wolf
>
> On 25 Sep 2007, at 00:25, Piotr wrote:
>
>>
>> Any help and comment on this pls?
>>
>>
>>
>> Piotr wrote:
>>>
>>> Hello,
>>>
>>> I have a problem using the input calendar component from tomahawk
>>> when
>>> gzip filter is on.
>>> I'm using MyFaces 1.2, Tomahawk 1.1.6, facelets 1.13, Tomcat
>>> 6.0.14 and
>>> ehcache 1.3.0.
>>> As the gzip filter I use the one that comes with ehcache,
>>> configuration in
>>> web.xml is as follows:
>>>
>>> <filter>
>>> <filter-name>gzipFilter</filter-name>
>>>
>>> <filter-class>net.sf.ehcache.constructs.web.filter.GzipFilter</
>>> filter-class>
>>> </filter>
>>>
>>> ....
>>>
>>> <filter-mapping>
>>> <filter-name>gzipFilter</filter-name>
>>> <url-pattern>/*</url-pattern>
>>> </filter-mapping>
>>>
>>>
>>>
>>> [myApp] WARN [http-8080-1] Filter.logThrowable(147) | Throwable
>>> thrown
>>> during doFilter on request with URI:
>>> /myApp/faces/myFacesExtensionResource/
>>> org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/
>>> 11901920/prototype.PrototypeResourceLoader/prototype.js
>>> and Query: nullFailure when attempting to set Content-Encoding: gzip
>>> net.sf.ehcache.constructs.web.ResponseHeadersNotModifiableException:
>>> Failure when attempting to set Content-Encoding: gzip
>>> at
>>> net.sf.ehcache.constructs.web.ResponseUtil.addGzipHeader
>>> (ResponseUtil.java:126)
>>> at
>>> net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter
>>> (GzipFilter.java:95)
>>> at net.sf.ehcache.constructs.web.filter.Filter.doFilter
>>> (Filter.java:92)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>>> (ApplicationFilterChain.java:235)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>>> (ApplicationFilterChain.java:206)
>>> at
>>> com.myApp.webapp.filter.LocaleFilter.doFilterInternal
>>> (LocaleFilter.java:62)
>>> at
>>> org.springframework.web.filter.OncePerRequestFilter.doFilter
>>> (OncePerRequestFilter.java:77)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>>> (ApplicationFilterChain.java:235)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>>> (ApplicationFilterChain.java:206)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke
>>> (StandardWrapperValve.java:233)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke
>>> (StandardContextValve.java:175)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke
>>> (StandardHostValve.java:128)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke
>>> (ErrorReportValve.java:102)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke
>>> (StandardEngineValve.java:109)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service
>>> (CoyoteAdapter.java:263)
>>> at
>>> org.apache.coyote.http11.Http11Processor.process
>>> (Http11Processor.java:844)
>>> at
>>> org.apache.coyote.http11.Http11Protocol
>>> $Http11ConnectionHandler.process(Http11Protocol.java:584)
>>> at
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>> 447)
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> I receive this error always when I enter the page with input calendar
>>> component. It the filter is off it works fine.
>>>
>>> Pls, any idea?
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/inputcalendar-
>> with-gzip-filter-tf4479649.html#a12869689
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>
>
>
--
View this message in context:
http://www.nabble.com/inputcalendar-with-gzip-filter-tf4479649.html#a12910857
Sent from the MyFaces - Users mailing list archive at Nabble.com.