<section role="NotInToc" id="a4j_loadScript">
   <title>
				&lt;
				a4j:loadScript
				&gt;
				<emphasis role="since">
         <superscript> available since <emphasis role="version">3.0.0</emphasis>
         </superscript>
      </emphasis>
   </title>
   <section>
            <sectioninfo>
                  <keywordset>
                        <keyword>loadScript</keyword>	
                  </keywordset>
            </sectioninfo>
            	<title>Description</title>
            <para>
                  The <emphasis role="bold">
            <property>&lt;a4j:loadScript&gt;</property>
         </emphasis> component allows to load scripts from alternative sources like a jar files, etc.
            </para>
      </section>
   <section>
      <title>Details of Usage</title>
      <para>
          The main attribute of the <emphasis role="bold">
            <property>&lt;a4j:loadScript&gt;</property>
         </emphasis> is <emphasis>
            <property>"src"</property>
         </emphasis>, wich defines the context relative path to the script. 
          The value of the attribute does not require a prefix of an application. 
          Leading slash in the path means the root of the web context.
          It is also possible to use <code>resource:///</code> prefix to access the script file using RichFaces resource framework.
    </para>
        <para>
              <emphasis role="bold">Example:</emphasis>
        </para>
        <programlisting role="XML"><![CDATA[<a4j:loadScript src="resource:///org/mycompany/assets/script/focus.js" />]]></programlisting>
          <para>
                The <emphasis>
            <property>"src"</property>
         </emphasis> attribute passses value to the <code>getResourceURL()</code> method of the ViewHandler of the application, 
                The result is passed through the <code>encodeResourceURL()</code> method of the ExternalContext. 
          </para>
          
      
   </section>
   <section>
      <title>Reference Data</title>
      <para>
         <ulink url="&tlddoc;a4j/loadScript.html">Table of 
							&lt;a4j:loadScript&gt; 
							 attributes</ulink>.
						</para>
      <table>
	        <title>Component Identification Parameters </title>
         <tgroup cols="2">
	           <thead>
               <row>
                  <entry>Name</entry>
                  <entry>Value</entry>
               </row>
            </thead>
            <tbody>
               <row>
                  <entry>component-type</entry>
                  <entry>org.ajax4jsf.LoadScript</entry>
               </row>
               <row>
                  <entry>component-family</entry>
                  <entry>org.ajax4jsf.LoadScript</entry>
               </row>
               <row>
                  <entry>component-class</entry>
                  <entry>org.ajax4jsf.component.html.HtmlLoadScript</entry>
               </row>
               <row>
                  <entry>renderer-type</entry>
                  <entry>org.ajax4jsf.LoadScriptRenderer</entry>
               </row>
            </tbody>
         </tgroup>
      </table>
   </section>
   <section>
      <title>Relevant Resources Links</title>
	     <para>
	      Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/script.jsf?c=loadScript">Script page at RichFaces LiveDemo</ulink> for examples of component usage abd their sources.
	</para>
  </section>
</section>