5 Replies Latest reply on Jul 28, 2009 11:39 PM by ilya_shaikovsky

    screen flicker when applying skins

      Hi,

      I'm using JSF templates and navigation rules for navigating through my RF application. The application layout is divided into header, menu and content areas. Unfortunately, the screen flickers when navigating from one page to another page. It seems that the RF skins have to be loaded again and the facelets sheets have to be reloaded also.

      To avoid the screen flicker I tried to put the navigation logic into jsFunctions with rerendering the content area. The result is no screen flicker anymore. But at one point I have to use navigating inside a the content area because of a special backing bean method. Therefore, I use navigation rules again. Hence, these navigation rules conflicts with the jsFunction because the content area is not rerendered anymore using the jsFunction.

      How can I avoid the screen flicker?

      Or how can I avoid navigation rule conflicts?

      I appreciate any hints for this problem!

        • 1. Re: screen flicker when applying skins
          ilya_shaikovsky

          Skin should not be changed using ajax. Full page reload should occurs in order to get new stylesheets applied. So you have to perform regular submit with full page reload.

          • 2. Re: screen flicker when applying skins

            I don't want to change skins via ajax. When I tried to use the combination of one layout template (JSF template), header/menu/content areas and navigation rules it SEEMS that RF skins have to be reloaded because on every navigation click there is screen flicker (for a short time you see the page without skin, before the skinned page is displayed).

            For this case I'm searching for a solution. My solution was to solve this with jsFunction but this is not satisfying also.

            How can I avoid that the screen flickers when navigating with navigation rules and skins?

            • 3. Re: screen flicker when applying skins
              ilya_shaikovsky

              does the behavior is the same that you could check changing the skins at richfaces-demo?

              • 4. Re: screen flicker when applying skins

                The richface demo is much better than the navigation in my application.

                We use an own skin which is very special. Our skin is based on the plain skin with many customized extension. Could this be the reason for my problem? Could it be a perfomance problem?

                • 5. Re: screen flicker when applying skins
                  ilya_shaikovsky

                  ok.. please show page code related to the case..