14 Replies Latest reply on Mar 25, 2008 8:56 AM by Lotfi Mellouk

    3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GAcss)

    Padraig Byrne Newbie

      Styling not being picked up & it would seem I am getting some empty css files since upgrading to 3.1.2GA

      Note: Using firebug css editor to switch between loaded/css files & view contents

      Not all are empty

      For example following ok:
      a4j_3_1_2.GAcss/datascroller.xcss/DATB/eAGLZKr5DAADWQHL.seam
      a4j_3_1_2.GAcss/simpleTogglePanel.xcss/DATB/eAGLZKr5DAADWQHL.seam

      but following for example have no content:

      a4j_3_1_2.GAcss/panel.xcss/DATB/eAGLZKr5DAADWQHL.seam
      a4j_3_1_2.GAcss/spacer.xcss/DATB/eAGLZKr5DAADWQHL.seam

      Note this is only partial list

      Any ideas ?

        • 1. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
          Alexander Smirnov Master

          Are you have any exceptions in the server log ?

          • 2. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
            Padraig Byrne Newbie

            no exceptions , Check deployed jar @ all file intact & in boot log it appears all are being processed ok by renderkit .. see trace

            BTW Using with seam CR2 & facelets & jboss 4.2.0

            Was going to debug through renderkit to see what's happening unless you have any better ideas !

            jboss trace ..

            2007-10-24 19:46:55,222 DEBUG [org.ajax4jsf.renderkit.compiler.HtmlCompiler] Start compile template from css/panel.xcss
            2007-10-24 19:46:55,243 DEBUG [org.ajax4jsf.renderkit.compiler.HtmlCompiler] Finish compilation template from css/panel.xcss
            2007-10-24 19:46:55,243 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/panel.xcss] as : /myapp/a4j_3_1_2.GAcss/panel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,243 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,243 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/panel.xcss] as : /myapp/a4j_3_1_2.GAcss/panel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,243 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,244 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/panel.xcss] as : /myapp/a4j_3_1_2.GAcss/panel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,244 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,244 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/toolBar.xcss] as : /myapp/a4j_3_1_2.GAcss/toolBar.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,244 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,245 DEBUG [org.ajax4jsf.renderkit.compiler.HtmlCompiler] Start compile template from css/spacer.xcss
            2007-10-24 19:46:55,248 DEBUG [org.ajax4jsf.renderkit.compiler.HtmlCompiler] Finish compilation template from css/spacer.xcss
            2007-10-24 19:46:55,248 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/spacer.xcss] as : /myapp/a4j_3_1_2.GAcss/spacer.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,248 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,248 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/spacer.xcss] as : /myapp/a4j_3_1_2.GAcss/spacer.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,249 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,249 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/panel.xcss] as : /myapp/a4j_3_1_2.GAcss/panel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,249 DEBUG [org.ajax4jsf.resource.InternetResourceBuilder] Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1f12030
            2007-10-24 19:46:55,249 DEBUG [org.ajax4jsf.resource.ResourceBuilderImpl] Build URI for Resource with key [css/panel.xcss] as : /myapp/a4j_3_1_2.GAcss/panel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            2007-10-24 19:46:55,249 DEBUG [org.ajax4jsf.context.AjaxContext] Scripts for insert into head :
            /myapp/a4j_3_1_2.GAorg.ajax4jsf.javascript.AjaxScript.seam
            /myapp/a4j_3_1_2.GAorg.ajax4jsf.javascript.PrototypeScript.seam
            /myapp/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/utils.js.seam
            /myapp/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.seam
            /myapp/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.seam
            /myapp/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/browser_info.js.seam

            2007-10-24 19:46:55,249 DEBUG [org.ajax4jsf.context.AjaxContext] Styles for insert into head :
            /myapp/a4j_3_1_2.GAcss/toolBar.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            /myapp/a4j_3_1_2.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            /myapp/a4j_3_1_2.GAcss/panel.xcss/DATB/eAHbKzVPHQAEqQGd.seam
            /myapp/a4j_3_1_2.GAcss/spacer.xcss/DATB/eAHbKzVPHQAEqQGd.seam


            in firebug

            • 3. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
              Alexander Smirnov Master

              Can you try Ctrl+F5 to tell browser force reloading of all files ?

              • 4. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                Padraig Byrne Newbie

                Had tried CTRL -F5 to no avail. Got it working somewhat by setting the filters enable-cache to false. Initial loading still fails ( loads xcss files but with empty content), but on reload after login the xcss files load with content. So now all except my login page have correct styling. I'm using Seam CR2 & seam Identity to validate login . Any obvious reason why the xcss files are not loading correctly initially ?

                • 5. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                  Alexander Smirnov Master

                  Xmm... Looks like a bug ( incorrect work with a seam authorisation ).
                  Can your send to me application configuration files ( pages.xml, components.xml and web.xml ) ?
                  asmirnov (at) exadel dot com

                  • 6. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                    Alex M Newbie

                    I have same problem, but i don't use seam. First page (login page whith rich:panel) has empty panel css. After setting enable-cache to false other pages whith panels are ok.

                    • 7. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                      Alex M Newbie

                      Sorry, but problem described in last post has been decided. It was feature of my application ;)
                      Disabling cache resolves problem whith css.

                      • 8. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                        Scott Bader Newbie

                        Seeing same problem reported by padraigbyrne.
                        Getting empty css files for css/panel.xcss and css/modalPanel.xcss

                        Environment: Seam 2.0 GA, Facelets, JBoss 4.2.2
                        Currently trying to workaround this issue by using a:loadStyle to explicitly load these css files.

                        Any insight into the cause of these issues and/or workaround?

                        • 9. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                          Scott Bader Newbie

                          This issue is somehow related to Seam pages.xml configuration and login-required attribute.

                          For example, following configuration in pages.xml results in various empty css files.
                          <page view-id="*" login-required="true">

                          <rule if-outcome="home">
                          <redirect view-id="/home.xhtml"/>




                          Issue is not present using:
                          <page view-id="*">

                          <rule if-outcome="home">
                          <redirect view-id="/home.xhtml"/>




                          • 10. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                            Padraig Byrne Newbie

                            I have same environment as 'dsbader' & need to re-visit this issue. Have ignored as it only affect my login page , but need to fix that now !!!

                            As mentioned ok if I re-render after login !

                            Any ideas , suggestion etc ?

                            Was going to debug through renderkit to see what's happening unless you have any better ideas !

                            • 11. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                              Fernando Montaño Expert

                              Today I upgraded RF from 3.1.0 to 3.1.3.GA and I'm experiencing the same problem, all my modal panels don't have style.

                              Looking at the content of the css url I can see that they are empty for modal panel (it's fine for singleTogglePanel).

                              http://localhost:8080/a4j_3_1_3.GAcss/panel.xcss/DATB/eAFjlbr0AAAC6gHS
                              



                              I also tried with an snapshot with the same result.
                              http://localhost:8080/a4j_3_2_0-SNAPSHOTcss/panel.xcss/DATB/eAFjlbr0AAAC6gHS
                              


                              Any idea to solve it?

                              (I tried F5, Ctrl+F5 without success)


                              • 12. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                                David DIDIER Newbie

                                hi
                                i have the same problem with 3.1.4. I cannot find any jira entry for this bug. Any idea when it will be fixed ?
                                Thanks

                                • 13. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                                  Ilya Shaikovsky Master

                                  could you please fill the jira issue with working war (with libs and sources) and specify server/browser you've using.

                                  • 14. Re: 3.1.2GA & CSS issue(Some blank css files in a4j_3_1_2.GA
                                    Lotfi Mellouk Master

                                    Hello

                                    I have the same problem first with dropDownMenu and modalPanel,
                                    environement:

                                    richfaces 3.1.4.GA
                                    facelets 1.1.13
                                    myfaces 1.1.5
                                    tomcat 5.5
                                    IE7

                                    the browser try to download modalPabnel.xcss when I use a modalPanel, it takes a long time, Im forced to do CRTL-F5 .

                                    any idea about this?