1 2 Previous Next 15 Replies Latest reply on Dec 19, 2008 1:48 PM by Rajeev Ravindran

    stylesheet not loading on IE

    Rajeev Ravindran Newbie

      I have this strange problem of style sheet not loading in IE 6. It works good on Firefox tho. If i refresh the page it works well in IE. My application is deployed on Oracle App server and im using Richfaces 3.2.1 . I was looking at other forums and set LoadStyleStrategy to ALL in web.xml but that did not make any difference.

      Any help on this issue is appreciated.

      - rajeev

        • 1. Re: stylesheet not loading on IE
          Nick Belaevski Master

          Hi,

          Can you please try 3.3.0-snapshot?

          • 2. Re: stylesheet not loading on IE
            Rajeev Ravindran Newbie

            is it 3.3.0 or 3.2.2 ?
            I found link to download 3.2.2 not 3.3.0

            is 3.3 released yet ? if yes, could you share the link ?


            thanks,

            • 3. Re: stylesheet not loading on IE
              Ilya Shaikovsky Master

              go to Rich Faces. Most Important links link in Nick's signature. There are links to snapshots you need.

              • 4. Re: stylesheet not loading on IE
                Rajeev Ravindran Newbie

                i just downloaded the following jars

                richfaces-ui-3.3.0-20081126.051013-60.jar
                richfaces-impl-3.3.0-20081120.050956-75-sources.jar
                richfaces-api-3.3.0-20081120.050956-75.jar

                and i removed

                richfaces-ui-3.2.1.GA.jar
                richfaces-impl-3.2.1.GA.jar
                richfaces-api-3.2.1.GA.jar

                when i refreshed my workspace i got an error saying HtmlTabPanel is not there :( any thoughts ?

                thanks,

                • 5. Re: stylesheet not loading on IE
                  Nick Belaevski Master

                  Hi,

                  You should not be using richfaces-impl-3.3.0-20081120.050956-75-sources.jar, but richfaces-impl-3.3.0-20081120.050956-75.jar

                  • 6. Re: stylesheet not loading on IE
                    Rajeev Ravindran Newbie

                    repalced richfaces-impl-3.3.0-20081120.050956-75-sources.jar with richfaces-impl-3.3.0-20081120.050956-75.jar but the issue is still the same :(


                    thanks,

                    • 7. Re: stylesheet not loading on IE
                      Nick Belaevski Master

                      Ok, please show us your web.xml?

                      • 8. Re: stylesheet not loading on IE
                        Rajeev Ravindran Newbie

                        sorry for the late reply.

                        here is my web.xml

                        <?xml version="1.0" encoding="UTF-8"?>
                        <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
                         <display-name>fadb</display-name>
                         <context-param>
                         <param-name>onload-config</param-name>
                         <param-value>/WEB-INF/onload-config.xml</param-value>
                         </context-param>
                         <context-param>
                         <param-name>com.sun.faces.verifyObjects</param-name>
                         <param-value>true</param-value>
                         </context-param>
                         <context-param>
                         <param-name>com.sun.faces.validateXml</param-name>
                         <param-value>true</param-value>
                         </context-param>
                         <context-param>
                         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                         <param-value>.jspx</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>org.richfaces.SKIN</param-name>
                         <param-value>classic</param-value>
                         </context-param>
                         <context-param>
                         <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                         <param-value>com.sun.facelets.FaceletViewHandler</param-value>
                         </context-param>
                         <context-param>
                         <param-name>facelets.LIBRARIES</param-name>
                         <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
                         </context-param>
                         <filter>
                         <display-name>RichFaces Filter</display-name>
                         <filter-name>richfaces</filter-name>
                         <filter-class>org.ajax4jsf.Filter</filter-class>
                         </filter>
                         <filter-mapping>
                         <filter-name>richfaces</filter-name>
                         <servlet-name>Faces Servlet</servlet-name>
                         <dispatcher>REQUEST</dispatcher>
                         <dispatcher>FORWARD</dispatcher>
                         <dispatcher>INCLUDE</dispatcher>
                         </filter-mapping>
                        
                         <servlet>
                         <servlet-name>Faces Servlet</servlet-name>
                         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                         <load-on-startup>1</load-on-startup>
                         </servlet>
                        
                         <servlet-mapping>
                         <servlet-name>Faces Servlet</servlet-name>
                         <url-pattern>*.faces</url-pattern>
                         </servlet-mapping>
                         <servlet-mapping>
                         <servlet-name>Faces Servlet</servlet-name>
                         <url-pattern>*.xls</url-pattern>
                         </servlet-mapping>
                        
                         <servlet-mapping>
                         <servlet-name>Excel</servlet-name>
                         <url-pattern>/excel</url-pattern>
                         </servlet-mapping>
                        
                         <servlet-mapping>
                         <servlet-name>Logout</servlet-name>
                         <url-pattern>/logout</url-pattern>
                         </servlet-mapping>
                         <servlet-mapping>
                         <servlet-name>Faces Servlet</servlet-name>
                         <url-pattern>*.jsf</url-pattern>
                         </servlet-mapping>
                         <welcome-file-list>
                         <welcome-file>fadbhome.jsp</welcome-file>
                         </welcome-file-list>
                         <security-constraint>
                         <display-name>Index Page Does Not Require Authentication</display-name>
                         <web-resource-collection>
                         <web-resource-name>indexpage</web-resource-name>
                         <url-pattern>index.jsf</url-pattern>
                         </web-resource-collection>
                         <auth-constraint>
                         <role-name>allusers</role-name>
                         </auth-constraint>
                         </security-constraint>
                         <security-constraint>
                         <display-name>All Pages Require Authentication</display-name>
                         <web-resource-collection>
                         <web-resource-name>allpages</web-resource-name>
                         <url-pattern>/*</url-pattern>
                         <http-method>GET</http-method>
                         <http-method>POST</http-method>
                         </web-resource-collection>
                         <auth-constraint>
                         <role-name>allusers</role-name>
                         <role-name>Analyst</role-name>
                         <role-name>Admins</role-name>
                         </auth-constraint>
                         </security-constraint>
                         <security-constraint>
                         <display-name>Admin pages</display-name>
                         <web-resource-collection>
                         <web-resource-name>adminPages</web-resource-name>
                         <url-pattern>/admin/*</url-pattern>
                         <http-method>GET</http-method>
                         <http-method>POST</http-method>
                         </web-resource-collection>
                         <auth-constraint>
                         <role-name>Admins</role-name>
                         </auth-constraint>
                         </security-constraint>
                         <login-config>
                         <auth-method>BASIC</auth-method>
                         </login-config>
                         <security-role>
                         <description>All Authenticated Users</description>
                         <role-name>allusers</role-name>
                         </security-role>
                         <security-role>
                         <description>Admins</description>
                         <role-name>Admins</role-name>
                         </security-role>
                         <security-role>
                         <description>Analyst</description>
                         <role-name>Analyst</role-name>
                         </security-role>
                         <env-entry>
                         <env-entry-name>java/naming/factory/initial</env-entry-name>
                         <env-entry-type>java.lang.String</env-entry-type>
                         <env-entry-value>com.sun.jndi.ldap.LdapCtxFactory</env-entry-value>
                         </env-entry>
                         <env-entry>
                         <env-entry-name>java/naming/provider/url</env-entry-name>
                         <env-entry-type>java.lang.String</env-entry-type>
                         <env-entry-value>ldap://developmentidentity.cdmatech.com:389</env-entry-value>
                         </env-entry>
                         <env-entry>
                         <env-entry-name>java/naming/security/credentials</env-entry-name>
                         <env-entry-type>java.lang.String</env-entry-type>
                         <env-entry-value>leslnrd4</env-entry-value>
                         </env-entry>
                         <env-entry>
                         <env-entry-name>com/sun/jndi/ldap/connect/pool</env-entry-name>
                         <env-entry-type>java.lang.String</env-entry-type>
                         <env-entry-value>true</env-entry-value>
                         </env-entry>
                         <error-page>
                         <exception-type>java.lang.Throwable</exception-type>
                         <location>/generalError.jsf</location>
                        </error-page>
                        
                        </web-app>
                        


                        • 9. Re: stylesheet not loading on IE
                          Tsikhon Kuprevich Newbie

                          Hi,

                          could you please upload a war file of your project to somewhere on the web?

                          Best Regards,
                          Tsikhon Kuprevich

                          • 10. Re: stylesheet not loading on IE
                            Rajeev Ravindran Newbie

                            upload project war file on internet ?? I guess I can deal with stylesheet not getting loaded rather than getting fired .. :-)

                            - raj

                            • 11. Re: stylesheet not loading on IE
                              Rajeev Ravindran Newbie

                              upload project war file on internet ?? I guess I can deal with stylesheet not getting loaded rather than getting fired .. :-)

                              - raj

                              • 12. Re: stylesheet not loading on IE
                                Nick Belaevski Master

                                Hi Raj,

                                Tsikhon meant small demo project that will demonstrate the issue and of cause not the project you're developing.

                                • 13. Re: stylesheet not loading on IE
                                  Rajeev Ravindran Newbie

                                  hi,

                                  looks like its more like OC4J and IE 6.0 issue.
                                  http://forums.oracle.com/forums/thread.jspa?messageID=2647384

                                  We have opened a ticket with Oracle. Will update this tread once I hear back them.

                                  Thanks All ..

                                  - Raj

                                  • 14. Re: stylesheet not loading on IE
                                    Alexander Chubenko Newbie

                                    Hi, rajevar.
                                    I'm using Javascript solution to resolve this issue.

                                    Javascript

                                    function load()
                                    {
                                     var cssTables = document.getElementsByTagName('link');
                                    
                                     cssTables[cssTables.length-1].href='css/style.css';
                                    }
                                    


                                    CSS link
                                    <link href="css/style.css" rel="stylesheet" type="text/css"></link>
                                    


                                    HTML tag body
                                    <body onload="javascript:load()">
                                    


                                    Main idea is to reattach CSS after document loading will be completed.

                                    1 2 Previous Next