NetUI Tag Library Documentation (Version 1.0.1)

netui
netui:scriptContainer Tag

Acts as a container that will bundle up JavaScript created by other <netui...> tags, and outputs it within a single <script> tag.

Syntax

<netui:scriptContainer
    [generateIdScope="string_generateScopeId"]
    [idScope="string_scopeId"] >
    ... JSP content ...
</netui:scriptContainer>

Description

Acts as a container that will bundle up JavaScript created by other <netui...> tags, and outputs it within a single <script> tag. This is especially useful for Portal web applications, because they often cannot rely on having <html> ... </html> tags to provide a default container. In a Portlet, some JSP pages might be included in other JSP pages. Having redundant <html> ... </html> tags in the rendered Portlet JSP can result in display problems for some browsers. On the other hand, omitting the <html> tag (and the container it provides) can result in cluttered code, especially where JavaScript appears in the file. To solve this issue, Beehive provides the <netui:scriptContainer> tag.

The <netui:scriptContainer> ... </netui:scriptContainer> tag set should enclose those <netui:...> tags that you want included in the script container. The first <netui:scriptContainer> tag should appear after the JSP's <body> tag. The closing </netui:scriptContainer> tag should appear before the JSP's </body> tag.

Attributes
generateIdScope
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Automatically generate a scopeId for this script container.
idScope
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The id that is associated with the script methods.

Example

The <netui:scriptContainer> ... </netui:scriptContainer tag set simply encloses other NetUI tags that you want to belong to that script container. The first <netui:scriptContainer> tag should appear after the JSP's <body> tag. The closing </netui:scriptContainer> tag should appear before the JSP's </body> tag.


Tag Information
Tag Classorg.apache.beehive.netui.tags.javascript.ScriptContainer
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone