NetUI Tag Library Documentation (Version 1.0.2)

netui
netui:scriptHeader Tag

ScriptHeader will write the <script> and JavaScript includes into the HTML <head> tag.

Syntax

<netui:scriptHeader/>

Description

ScriptHeader will write the <script> and JavaScript includes into the HTML <head> tag. It can also be used to write the <script> and JavaScript includes in the body given a JSP fragment that uses the <netui:scriptContainer>.

This tag is required to be empty. It is also required when using the <netui:tree> element with the attribute runAtClient="true".

The <scriptHeader> tag should have a parent <netui:html> or <netui:scriptContainer> tag.

Example

In this example the <netui:scriptHeader/> tag has a parent <netui:html> tag.

    <netui:html>
        <head>
            <title>Page Title</title>
            <netui:scriptHeader/>
        </head>
        <netui:body>
            ...
 

In this example the <netui:scriptHeader/> tag is enclosed in the <netui:scriptContainer> tag.

    <netui:body>
        <netui:scriptContainer>
            <netui:scriptHeader/>
            <netui:tree runAtClient="true"
                        dataSource="pageFlow.root"
                        selectionAction="postback"
                        tagId="testTree"/>
            ...
        </netui:scriptContainer>
    </netui:body>


Tag Information
Tag Classorg.apache.beehive.netui.tags.javascript.ScriptHeader
TagExtraInfo ClassNone
Body Contentempty
Display NameNone