Renders the <script>
tags for the currently active scripts.
All scripts are obtained from all activated groups on all selected registries.
The scripts are filtered for the given position.
All of the selected scripts are then sorted. First with a default ordering selected to cover the most common cases of scripts following other scripts. Second, a stable topological sort is performed to resolve all the ordering constraints.
The body is invoked with any output discarded. This is to allow nested <wr:activate> and <wr:deactivate> tags.
Tag Information
Tag Class: | com.aoapps.web.resources.taglib.RenderScriptsTag |
---|---|
TagExtraInfo Class: | None |
Body Content: | scriptless |
Display Name: | None |
Attributes
Name | Required | Evaluation | Type | Description |
---|---|---|---|---|
application | No | Runtime | boolean |
Enables the application-scope registry
(defaults to By default, the application-scope activations and scripts are not included. This is because the application-scope registry is copied to the request, thus without modification during the request, the centrally registered scripts are used. |
session | No | Runtime | boolean |
Enables the session-scope registry, when present
(defaults to If missing, the session will not be created. Session-scope activations are applied after any selected application-scope. |
request | No | Runtime | boolean |
Enables the request-scope registry
(defaults to The application-scope registry is copied to the request, thus without modification during the request, the centrally registered scripts and activations are used. Request-scope activations are applied after any selected application-scope and session-scope. |
page | No | Runtime | boolean |
Enables the page-scope registry, when present
(defaults to Page-scope activations are applied after any selected application-scope, session-scope, and request-scope. |
registered | No | Runtime | boolean |
Enables the use of registry activation settings
(defaults to |
activate | No | Runtime | String |
The comma and/or space-separated set of groups to activate.
This is in addition to the registry-activated groups when When a group is both activated and deactivate, via these attributes, the activation takes precedence. Nested <wr:activate> and <wr:deactivate> tags will further refine the activations. |
deactivate | No | Runtime | String |
The comma and/or space-separated set of groups to deactivate.
This is in addition to the registry-deactivated groups when When a group is both activated and deactivate, via these attributes, the activation takes precedence. Nested <wr:activate> and <wr:deactivate> tags will further refine the activations. |
position | Yes | Runtime | String |
The position of scripts to render: one of |