1 Reply Latest reply on Nov 19, 2010 3:23 AM by Ilya Shaikovsky

    Script and Style files loading strategy: loading the pack.js files

    Andreas Panagiotidis Novice

      I though it would be useful to create a post in order to show how to load the framework.pack.js and ui.pack.js files in a xhtml.

      To the RichFaces guys: shouldn't it be in the load script strategy post or the documentation ? Is it there and I didn't see it? Anyway, here you are:

      <ui:composition ....


          <a4j:loadScript src="resource:///org/ajax4jsf/framework.pack.js" />
          <a4j:loadStyle src="resource:///org/richfaces/ui.pack.js" />


          <script type="text/javascript">window.RICH_FACES_EXTENDED_SKINNING_ON=true;</script>


      and ofcourse set the web.xml: