src/main/java/de/ipb_halle/molecularfaces/util/ResourceLoader.java
/**
	 * Adds a JavaScript resource component as facet to the wrapped component. The
	 * wrapped component is responsible for rendering its facets.
	 * 
	 * @param resource name of the file in the web project's resource library
	 */
Adds a JavaScript resource component as facet to the wrapped component. The
wrapped component is responsible for rendering its facets.

@param resource name of the file in the web project's resource library
Adds a JavaScript resource component as facet to the wrapped component . The wrapped component is responsible for rendering its facets . @param resource name of the file in the web project ' s resource library
public void addScriptResourceAsFacetComponent(String resource) {
		UIComponent resourceComponent = createResourceComponent(resource, JAVASCRIPT);
		resourceComponent.getAttributes().put("external", Boolean.FALSE);
		addComponentToResourceContainerInFacet(resourceComponent, JAVASCRIPT_FACET_NAME, component.getFacets());
	}
public void addScriptResourceAsFacetComponent ( String resource ) { UIComponent resourceComponent = createResourceComponent ( resource , JAVASCRIPT ) ; resourceComponent . getAttributes ( ) . put ( "external" , Boolean . FALSE ) ; addComponentToResourceContainerInFacet ( resourceComponent , JAVASCRIPT_FACET_NAME , component . getFacets ( ) ) ; }
Adds a JavaScript resource component as facet to the wrapped component.
Adds a JavaScript resource component as facet to the wrapped component .