Tag handler managing import of JavaScript/CSS/HTML resources declared on the WebResourceManager service.
Example:<nxr:resource name="myresource.js" target="head" />Note: if you would like to reference a resource already present on the war directory, you can use the standard JSF tags to reference it (Nuxeo patches the standard tags behaviour to allow doing so):
<h:outputScript src="/path/to/myresource.js" target="head" /> <h:outputStylesheet src="/path/to/myresource.css" target="head" />
Info | Value |
---|---|
Component Type | javax.faces.Output |
Handler Class | com.sun.faces.facelets.tag.jsf.html.ScriptResourceHandler |
Renderer Type | org.nuxeo.ecm.web.resources.jsf.Resource |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
name | true | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the resource as registered on the WebResourceManager service. |
target | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The target area for which this resource will be rendered. For example, target="head" would cause the resource to be rendered within the head element. If no value is specified, the script element is rendered at the same point in the view where the tag is located. Currently supported values for this attribute are "head", "body", and "form". |
includeTimestamp | false | javax.el.ValueExpression
(must evaluate to java.lang.Boolean )
| Boolean indicating whether the generated URL will include a timestamp to workaround caching issues when the resource changes server side. Available since 9.1, defaults to true. |
Output generated by Vdldoc View Declaration Language Documentation Generator.