6 Replies Latest reply on May 11, 2010 10:23 AM by romyo0o

    Re: How can i Disable Richfaces styles and scripts loading in a specific page ?

    romyo0o

      Hello,

      I need to disable rich faces scripts in aspecifc page.

       

       

       

       

      • 0. Re: How can i Disable Richfaces styles and scripts loading in a specific page ?
        ilya_shaikovsky

        It's possible for example by setting Styles and scripts load strategies to DEFAULT. but in this case at pages whre you using RF components you will get numerous resources requests instead of single pack request. B.t.w. fetched once - resource pack cached. So if this really critical for your application?

         

        And the best solution if you really need to turn them of at all for some pages - define strategies as NONE. then create two templates one which will be used for pages with RF components and the other for pages where not. At first template you should manually load resources using loadScript and loadStyle.