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

Version 1

    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: