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

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

    ramy Hassan Novice

      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 Master

        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.