netui:scriptContainer Tag
<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
[scopeId="string_scopeId"] />
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, WebLogic Workshop 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.
Sample Code
[BEA_HOME]\weblogic81\samples\workshop\SamplesApp\WebApp\tagSamples\netui\scriptContainer\
Attributes
scopeId | The id that is associated with the script methods. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
Related Topics
<netui:scriptContainer> Tag Sample