8 Replies Latest reply on Apr 11, 2008 2:40 PM by ayanul

    Only in IE7...

    massep

      Hi,

      I have a page which uses the tabPanel. For some weird reasons, when I navigate to that page from a page that has no A4J nor does it have any RichFaces control, the styles are not applied and none of the richFaces control are working.

      Of course I get a bunch of javascript errors. One for for each control that says "... is undefined". Like it doesn't recognize anything that's richfaces.

      BUT if I navigate to that same page from a page that has some richfaces control, then everything is fine.

      Any ideas what might cause that?

      My JSF state saving is set to client and I'm also using Tomahawk 1.1.6.

      Thanks for your help.

        • 1. Re: Only in IE7...
          massep

          Wow!

          I just did an experiment, I changed faces-config to do a redirect from the page without a4j or richfaces to the page that does and now everything is fine on that page.

          I do not want to have to use redirect. Any idea why IE7 behaves that way and if there's a workaround or setting I need to change in that particular browser?

          Thanks

          • 2. Re: Only in IE7...
            massep

            Hi all,

            Am I the only one with this issue, or is everybody else always redirecting?
            Why is this only happening in IE7?

            I went back to check the Exadel's richfaces demo site and looks like they always redirect.

            I'd really appreciate it if someone could confirm to me if this is an IE7 issue or not.


            Thanks in advance.

            • 3. Re: Only in IE7...
              massep

              For the exact same page, here's what's missing in the HTML source code when rendering with IE7.


              <link type="text/css" rel="stylesheet" href="/SSHRCJSF/faces/a4j_3_1_4.GAcss/tabPanel.xcss/DATB/eAGbkupxAAAE0wIC">
              <link type="text/css" rel="stylesheet" href="/SSHRCJSF/faces/a4j_3_1_4.GAcss/simpleTogglePanel.xcss/DATB/eAGbkupxAAAE0wIC">
              <link type="text/css" rel="stylesheet" href="/SSHRCJSF/faces/a4j_3_1_4.GAcss/toggleControl.xcss/DATB/eAGbkupxAAAE0wIC">
              <link type="text/css" rel="stylesheet" href="/SSHRCJSF/faces/a4j_3_1_4.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAGbkupxAAAE0wIC">
              <link type="text/css" rel="stylesheet" href="/SSHRCJSF/faces/a4j_3_1_4.GAcss/panel.xcss/DATB/eAGbkupxAAAE0wIC">
              <script type="text/javascript" src="/SSHRCJSF/faces/a4j_3_1_4.GAorg.ajax4jsf.javascript.PrototypeScript">
              


              I'm lost. Why is this missing in one browser (IE7) but not in IE6 and FF2?

              Please someone help me.

              • 4. Re: Only in IE7...
                ilya_shaikovsky

                Please create an issue and attach sample war(with libs) in order to reproduce the problem.

                • 5. Re: Only in IE7...
                  massep

                  ilya_shaikovsky, I take it that you have not experienced the same issue?

                  I'm sorry but we are in a crunch here so, I do not really have time to build a war.

                  We do not have much richFaces, we are evaluating it at the moment. I only have two pages with a few controls. And I was testing it with the browsers we endorse/support.

                  I do not write off the possibility that something isn't right in our setup somewhere but, I was hoping someone could give me a definitive answer as for the IE7 browser's behavior.

                  If you can, with IE7, navigate (forward) between a page with no richFaces to one that has some (like the tab panel), then you can do something I cannot.

                  We are using:
                  jsf-1.1_02-b08
                  Tomahawk 1.1.6

                  Thanks

                  • 6. Re: Only in IE7...
                    ayanul

                    I cannot reproduce it
                    What RichFaces you use?
                    Show web.xml and the list of lib which use

                    Thanks

                    • 7. Re: Only in IE7...
                      massep

                      Glad to hear that it those work for someone.


                      I have RichFaces 3.1.4GA.
                      As for my web.xml, I can show it to you but, I had to remove the richfaces related entries for a release.

                      So, here it is:

                       <context-param>
                       <param-name>com.sun.faces.validateXml</param-name>
                       <param-value>false</param-value>
                       </context-param>
                       <context-param>
                       <param-name>com.sun.faces.verifyObjects</param-name>
                       <param-value>false</param-value>
                       </context-param>
                       <context-param>
                       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                       <param-value>client</param-value>
                       </context-param>
                       <context-param>
                       <param-name>com.sun.faces.COMPRESS_STATE</param-name>
                       <param-value>true</param-value>
                       </context-param>
                       <context-param>
                       <param-name>LOG4J_CONFIG_LOCATION</param-name>
                       <param-value>${catalina.home}/shared/classes/log4j.xml</param-value>
                       </context-param>
                       <context-param>
                       <param-name>LOG4J_REFRESH_INTERVAL</param-name>
                       <param-value>5000</param-value>
                       </context-param>
                       <context-param>
                       <param-name>config-file</param-name>
                       <param-value>sshrc_quartz.properties</param-value>
                       </context-param>
                       <context-param>
                       <param-name>shutdown-on-unload</param-name>
                       <param-value>true</param-value>
                       </context-param>
                       <context-param>
                       <param-name>start-scheduler-on-load</param-name>
                       <param-value>true</param-value>
                       </context-param>
                       <context-param>
                       <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
                       <param-value>false</param-value>
                       </context-param>
                       <filter>
                       <filter-name>CompressingFilter</filter-name>
                       <filter-class>com.planetj.servlet.filter.compression.CompressingFilter</filter-class>
                       </filter>
                       <filter>
                       <filter-name>requestControlFilter</filter-name>
                       <filter-class>ca.sshrc.web.common.services.filters.RequestControlFilter</filter-class>
                       </filter>
                       <filter>
                       <filter-name>sessionExpiredFilter</filter-name>
                       <filter-class>ca.sshrc.web.common.services.filters.SessionExpiredFilter</filter-class>
                       <init-param>
                       <param-name>SessionTimeOutpage</param-name>
                       <param-value>/faces/SessionTimeOut</param-value>
                       </init-param>
                       <init-param>
                       <param-name>LogonBypasspage</param-name>
                       <param-value>/LogonBypass</param-value>
                       </init-param>
                       </filter>
                       <filter>
                       <filter-name>navigationFilter</filter-name>
                       <filter-class>ca.sshrc.web.common.services.filters.NavigationFilter</filter-class>
                       <init-param>
                       <param-name>ShowSessionAttributes</param-name>
                       <param-value>false</param-value>
                       </init-param>
                       <init-param>
                       <param-name>ShowRequestAttributes</param-name>
                       <param-value>false</param-value>
                       </init-param>
                       </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>3m</param-value>
                       <description>Set the size limit for uploaded files.
                       Format: 10 - 10 bytes
                       10k - 10 KB
                       10m - 10 MB
                       1g - 1 GB</description>
                       </init-param>
                       <init-param>
                       <param-name>uploadThresholdSize</param-name>
                       <param-value>100k</param-value>
                       <description>Tell MyFaces to keep files whose size is less that 100K in memory</description>
                       </init-param>
                       <init-param>
                       <param-name>uploadRepositoryPath</param-name>
                       <param-value>d:/temporaryUploadedFiles</param-value>
                       </init-param>
                       </filter>
                       <filter-mapping>
                       <filter-name>CompressingFilter</filter-name>
                       <url-pattern>/*</url-pattern>
                       </filter-mapping>
                       <filter-mapping>
                       <filter-name>requestControlFilter</filter-name>
                       <servlet-name>Faces Servlet</servlet-name>
                       </filter-mapping>
                       <filter-mapping>
                       <filter-name>sessionExpiredFilter</filter-name>
                       <url-pattern>/faces/*</url-pattern>
                       </filter-mapping>
                       <filter-mapping>
                       <filter-name>navigationFilter</filter-name>
                       <url-pattern>/faces/*</url-pattern>
                       </filter-mapping>
                       <filter-mapping>
                       <filter-name>ExtensionsFilter</filter-name>
                       <url-pattern>/faces/*</url-pattern>
                       </filter-mapping>
                       <listener>
                       <listener-class>ca.sshrc.web.common.services.Log4jConfigListener</listener-class>
                       </listener>
                       <listener>
                       <listener-class>org.quartz.ee.servlet.QuartzInitializerListener</listener-class>
                       </listener>
                       <servlet>
                       <servlet-name>Faces Servlet</servlet-name>
                       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                       <load-on-startup>1</load-on-startup>
                       </servlet>
                       <servlet>
                       <servlet-name>cache-init</servlet-name>
                       <servlet-class>ca.sshrc.web.common.services.CacheInit</servlet-class>
                       <load-on-startup>2</load-on-startup>
                       </servlet>
                       <servlet>
                       <servlet-name>LoopBackServlet</servlet-name>
                       <servlet-class>ca.sshrc.web.common.services.filters.LoopBackServlet</servlet-class>
                       <load-on-startup>3</load-on-startup>
                       </servlet>
                       <servlet-mapping>
                       <servlet-name>Faces Servlet</servlet-name>
                       <url-pattern>/faces/*</url-pattern>
                       </servlet-mapping>
                       <servlet-mapping>
                       <servlet-name>LoopBackServlet</servlet-name>
                       <url-pattern>/loopBack</url-pattern>
                       </servlet-mapping>
                       <session-config>
                       <session-timeout>60</session-timeout>
                       </session-config>
                       <taglib>
                       <taglib-uri>http://sshrc.ca/customTag/</taglib-uri>
                       <taglib-location>/WEB-INF/tlds/jsf_custom.tld</taglib-location>
                       </taglib>
                      


                      Thanks for your help.

                      • 8. Re: Only in IE7...
                        ayanul

                        Most likely there are such problems from for filters:
                        ca.sshrc.web.common.services.filters
                        com.planetj.servlet.filter