Sun GlassFish Enterprise Server v3 Add-On Component Development Guide

org.glassfish.admingui:serverInstTab Integration Point

Use an org.glassfish.admingui:serverInstTab integration point to place an additional tab on the Enterprise Server page of the Administration Console. Specify the attributes and their content as follows.

type

org.glassfish.admingui:serverInstTab

parentId

The id value of the tab set that is the parent for this tab. For a top-level tab on this page, this value is serverInstTabs, the tab set that contains the general information property pages for Enterprise Server.

For a sub-tab, the value is the id value for the parent tab.

priority

A numeric value that specifies the relative ordering of the tab on the page, whether at the top level or under another tab.

content

A relative path to the JavaServer Faces page that contains the content to be integrated.

When you use this integration point, your JavaServer Faces page must call the setSessionAttribute handler for the command event to set the session variable of the serverInstTabs tab set to the id value of your tab. For example, the file may have the following content:

<sun:tab id="sampleTab" immediate="true" text="Sample First Tab">
    <!command
        setSessionAttribute(key="serverInstTabs" value="sampleTab");
        gf.redirect(page="#{request.contextPath}/page/tabPage.jsf?name=Sample%20First%20Tab");
    />
</sun:tab>

The id of the sun:tab custom tag must be the same as the value argument of the setSessionAttribute handler.

For examples, see Example 3–4 and Example 3–5.