4 Replies Latest reply on Nov 8, 2010 3:23 PM by Amanda Sweeney

    Issue with LoadStyleStrategy

    Amanda Sweeney Newbie

      Hello,

       

      I am trying to enhance the performance of my application. After doing some research I found that setting the LoadStyleStrategy to ALL can help, so I added the following to my web.xml

       

           <context-param>
              <param-name>org.richfaces.LoadStyleStrategy</param-name>
              <param-value>ALL</param-value>

          </context-param>

       

      This does help with the performance however it also causes problems, the application loads but some of the styles do not. If I set the LoadStyleStrategy to DEFAULT, the application loads fine.

       

      Strangely the issue is not present with Firefox only IE (I'm using IE8). I used HttpWatch to compare the http requests for both browsers and for Firefox the following additional reqeusts are made

       

      http://localhost:9080/alm/a4j/g/3_3_2.SR1org.richfaces.renderkit.html.GradientA/DATB/eAH7!!3Tj2v7mAAZZAV3.xhtml
      http://localhost:9080/alm/a4j/g/3_3_2.SR1org.richfaces.renderkit.images.TabGradientA/DATB/eAH7f-!Y!!!!mQAZCwWj.xhtml
      http://localhost:9080/alm/a4j/g/3_3_2.SR1org.richfaces.renderkit.images.TabStripeImage/DATB/eAH7cW0fAAVVAo0_.xhtml

       

      The weird thing is, if I restart WAS and clear my temporary internet files for IE the issue goes away, but it mysteriously appears again after awhile.

       

      Has anyone come across this before? I'd like to be able to use this setting as it really does help with performance, but I can't use it if it affects the layout. I'm using richfaces 3.3.2.

       

      Any help would be greatly appreciated.

       

      Thanks,

      Amanda