Tag handler managing import of all resource bundles declared on the WebResourceManager service for a page declared on the ThemeStylingService.
This tag will generate multiple HTML tags depending on resource types inside the bundles (js, css, hmtl) and will respect dependencies between resources, but will place CSS aggregated resources first, then JavaScript aggregated resources, then HTML imports (not aggregated).
It also handles inclusion of XHTML templates, using resource types xhtml and xhtmlfirst: resources with type xhtmlfirst will be included before any other type of resources; resources with type xhtml will be included after.
Example:<nxr:page name="mypage" target="head" />
Name | Required | Type | Description |
---|---|---|---|
name | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the page as registered on the ThemeService. |
type | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The type of resource to select (css, js, etc...). All resources will be taken into account if empty. |
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". |
target_js | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Specific target for JavaScript resources (optional, defaults to target attribute value). |
target_css | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Specific target for CSS resources (optional, defaults to target attribute value). |
target_html | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Specific target for HTML resources (optional, defaults to target attribute value). |
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.