4 Replies Latest reply on Sep 11, 2007 5:16 AM by Ilya Shaikovsky

    rich:dropDownMenu and Safari WIN32

    First Last Newbie

      Using the following configuration,
      * JBoss AS 4.2.1 GA
      * Seam 2 nightly build
      * RichFaces 3.0.1
      * AJAX4JSF 1.1.2 nightly build

      With the following codes,

      <h:form>
       <rich:toolBar>
       <rich:dropDownMenu value="Main">
       <rich:menuItem value="Sub 1" action="sub1" />
       <rich:menuItem value="Sub 2" action="sub2" />
       </rich:dropDownMenu>
       </rich:toolBar>
       </h:form>


      results in the following error messages when using Safari 3 WIN32 latest release,
      11:28:41,656 ERROR [[default]] Servlet.service() for servlet default threw exception
      javax.faces.FacesException: Error decode resource data
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:581)
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:343)
       at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:160)
       at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:145)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:260)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      Caused by: java.util.zip.DataFormatException: unknown compression method
       at java.util.zip.Inflater.inflateBytes(Native Method)
       at java.util.zip.Inflater.inflate(Unknown Source)
       at java.util.zip.Inflater.inflate(Unknown Source)
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:575)
       ... 27 more


      The above codes have no problem when running on Firefox 2 or IE 7.


      Also interesting to note that, <rich:toolBarGroup> has no problem at all. It seems the problem is originated with <rich:dropDownMenu> tag.

      Thank you.

      P.S.: Unfortunately, I cannot test it with RichFaces 3.1.0 RC5 as it is not yet compatible with Seam 2 (nightly build) as far as I know from preliminary testing. (as the packaging structure of the HTMLLoadStyle class is different to previous version of the AJAX4JSF library and Seam 2 is having problem to locate the class).