You can add content for your add-on component to an existing top-level page, such as the Configuration page or the Resources page. To add content to one of these pages, use an integration point of type org.glassfish.admingui:configuration or org.glassfish.admingui:resources.
In the example console-config.xml file, the following integration-point element adds new content to the top-level Resources page:
<integration-point id="sampleResourceLink" parentId="propSheetSection" type="org.glassfish.admingui:resources" priority="100" content="sampleResourceLink.jsf" />
This example specifies the following values:
The id value, sampleResourceLink, specifies the integration point ID.
The parentId value, propSheetSection, specifies that the content is to be a section of a property sheet on the page.
The type value, org.glassfish.admingui:resources, specifies the integration point type as the Resources page.
To add content to the Configuration page, specify the type value as org.glassfish.admingui:configuration.
The priority value, 100, specifies the order of the content on the Resources page. The high value places it at the top of the page.
The content value, sampleResourceLink.jsf, specifies the JavaServer Faces page that displays the new content on the Resources page.
Another integration-point element in the console-config.xml file places similar content on the Configuration page.
A JavaServer Faces page for page content often uses the JSFTemplating tag sun:property to specify a property on a property sheet. This tag provides all the capabilities of the Project Woodstock tag webuijsf:property.
In the example, the sampleResourceLink.jsf file has the following content:
<sun:property> <sun:hyperlink toolTip="Sample Resource" url="/sample/page/testPage.jsf?name=Sample%20Resource%20Page" > <sun:image url="/resource/sample/images/sample.png" /> <sun:staticText text="Sample Resource" /> </sun:hyperlink> </sun:property> <sun:property> <sun:hyperlink toolTip="Another" url="/sample/page/testPage.jsf?name=Another" > <sun:image url="/resource/sample/images/sample.png" /> <sun:staticText text="Another" /> </sun:hyperlink> </sun:property>
The file specifies two simple properties on the property sheet, one above the other. Each consists of a sun:hyperlink element (a link to a URL). Within each sun:hyperlink element is nested a sun:image element, specifying an image, and a sun:staticText element, specifying the text to be placed next to the image.
Each sun:hyperlink element uses a toolTip attribute and a url attribute. Each url attribute references the testPage.jsf file that is used elsewhere in the example, specifying different content for the name parameter.
You can use many other kinds of user interface elements within a sun:property element.