1. Introduction to the Development Environment for Enterprise Server Add-On Components
3. Extending the Administration Console
Administration Console Architecture
Implementing a Console Provider
About Administration Console Templates
Specifying the ID of an Add-On Component
Adding Functionality to the Administration Console
Adding a Node to the Navigation Tree
Creating a JavaServer Faces Page for Your Node
Creating JavaServer Faces Pages for Your Tabs
Adding a Task to the Common Tasks Page
Creating a JavaServer Faces Page for Your Task
Adding a Task Group to the Common Tasks Page
Creating a JavaServer Faces Page for Your Task Group
Creating a JavaServer Faces Page for Your Page Content
Adding a Page to the Administration Console
Adding Internationalization Support
Creating an Integration Point Type
To Create an Integration Point Type
4. Extending the asadmin Utility
5. Adding Container Capabilities
6. Packaging, Integrating, and Delivering an Add-On Component
To change the theme or brand of the Administration Console for your add-on component, use the integration point type org.glassfish.admingui:customtheme. This integration point affects the Cascading Style Sheet (CSS) files and images that are used in the Administration Console.
For example, the following integration point specifies a custom theme:
<integration-point id="myOwnBrand" type="org.glassfish.admingui:customtheme" priority="2" content="myOwnBrand.properties" />
The priority attribute works differently when you specify it in a branding integration point from the way it works in other integration points. You can place multiple branding add-on components in the modules directory, but only one theme can be applied to the Administration Console. The priority attribute determines which theme is used. Specify a value from 1 to 100; the lower the number, the higher the priority. The integration point with the highest priority will be used.
Additional integration point types also affect the theme or brand of the Administration Console:
Specifies the name and location of the include masthead file, which can be customized with a branding image. This include file will be integrated on the masthead of the Administration Console.
Specifies the name and location of the include file containing the branding login image code that will be integrated with the login page of the Administration Console.
Specifies the name and location of the include file containing the customized login form code. This code also contains the login background image used for the login page for the Administration Console.
Specifies the name and location of the include file containing the branding image that will be integrated with the content of the version popup window.
For example, you might specify the following integration points. The content for each integration point is defined in an include file.
<integration-point id="myOwnBrandMast" type="org.glassfish.admingui:masthead" priority="80" content="branding/masthead.inc" /> <integration-point id="myOwnBrandLogImg" type="org.glassfish.admingui:loginimage" priority="80" content="branding/loginimage.inc" /> <integration-point id="myOwnBrandLogFm" type="org.glassfish.admingui:loginform" priority="80" content="branding/loginform.inc" /> <integration-point id="myOwnBrandVersInf" type="org.glassfish.admingui:versioninfo" priority="80" content="branding/versioninfo.inc" />
To provide your own CSS and images to modify the global look and feel of the entire application (not just the Administration Console), use the theming feature of Project Woodstock. Create a theme JAR file with all the CSS properties and image files that are required by your Woodstock component. Use a script provided by the Woodstock project to clone an existing theme, then modify the files and properties as necessary. Once you have created the theme JAR file, place it in the WEB-INF/lib directory of the Administration Console so that the Woodstock theme component will load the theme. In addition, edit the properties file specified by your integration point (MyOwnBrand.properties, for example) to specify the name and version of your theme.