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

    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 ....
        xmlns:a4j="http://richfaces.org/a4j">

    ...

        <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:


        <context-param>
            <param-name>org.richfaces.LoadStyleStrategy</param-name>
            <param-value>NONE</param-value>
        </context-param>
       
        <context-param>
            <param-name>org.richfaces.LoadScriptStrategy</param-name>
            <param-value>NONE</param-value>
        </context-param>

     

    Andreas