1 Reply Latest reply on Nov 17, 2009 4:12 PM by luxspes

    how to load an external javascript (js)

      Hi
         i like to add external js (java script) file into seam framework, anyone suggest me how to do this?. if it is internal script means running perfectly.

        • 1. Re: how to load an external javascript (js)

          What do you mean by external vs internal js? All I do is put my .js files at applicationName\WebContent\scripts and then include them in my .xhtml files:


          <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/scripts/someScriptFile.js"></script>