Component identification parameters

Name | Value
--- | ---
component-type | org.ajax4jsf.LoadScript
component-family | org.ajax4jsf.LoadScript
component-class | org.ajax4jsf.component.html.HtmlLoadScript
renderer-type | org.ajax4jsf.LoadScriptRenderer

## Creating on a page

Simple Component definition on a page:

Example:

    <a4j:loadScript src="scripts/someScript.js"/>

## Dynamical creation of a component from Java code

Example:

    import org.ajax4jsf.component.html.HtmlLoadScript;
    ...
    HtmlLoadScript myScript = new HtmlLoadScript();
    ...

## Key attributes and ways of usage

As it was mentioned above this component returns its value passing it to the getResourceUR() method of the ViewHandler for this application, and passing the result through the encodeResourceURL() method of the ExternalContext.

It means that the Context will be inserts automatically to the link. And calls like resource:// will be properly handled.

Except this - you may be free to put your script links right from the child page while using facelets templates .

## Relevant resources links

Here you can see the example of <a4j:loadScript>s usage and sources for the given example.