<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="generateIdScope"]
    [idScope="idScope"] />

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  |   Supports runtime evaluation / JSP Expression Language: Yes

Automatically generate a scopeId for this script container.
idScope
Required: No  |   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.