Extending the Administration Console
Setting Up a Development Environment
Oracle provides all of the JSP tag libraries, schemas, and base Java classes that you need to develop a console extension. Because an Administration Console extension is a collection of XML files, Java classes, JSPs, and other standard Web-related resources, you can use any text editor or Integrated Development Environment to develop your extension.
The following sections describe setting up an environment for developing Administration Console extensions:
- Set Up the Classpath (Optional)
- Import Tag Libraries Into IDEs (Optional)
- Create a Directory Tree for the Extension
- Configure Preferences to See UI Control Labels
Set Up the Classpath (Optional)
If you are creating Apache Struts classes or Beehive Page Flow classes for your extension, you need a set of Apache classes in your classpath. If you are adding nodes to the NavTreePortlet, you need a set of Oracle classes.
To add these classes to your classpath, run the following script:
WL_HOME\server\bin\setWLSEnv.cmd (or setWLSEnv.sh)
where WL_HOME is the directory in which you installed WebLogic Server.Instead of using Oracle's script, you can add to your environment's classpath all of the JAR files in the WL_HOME/server/lib/consoleapp/webapp/WEB-INF/lib directory.
Import Tag Libraries Into IDEs (Optional)
If you are using Oracle's JSP templates to create JSPs in your extension, use JSP tags from the JSP Standard Tag Library (JSTL), the Oracle Administration Console Extension Tag Library, and the Apache Beehive Page Flows Tag Library.
WebLogic Server installs a version of these tag libraries, which you can make available to your IDE. Alternatively, you can download your own copy of these standard tag libraries. For more information, see JSP Templates and Tag Libraries.
Create a Directory Tree for the Extension
An Administration Console extension is a portion of a Web application and its resources must be organized into a directory structure that satisfies the requirements for standard Java EE Web applications. In addition, the WebLogic Portal framework, Apache Struts, and Apache Beehive require configuration files to be in specific locations.
To start working on your Administration Console extension, create a directory tree that matches the skeletal structure in Table 3-1.
If you are extending the Administration Console's Look and Feel, your root directory will contain additional subdirectories. See Copy and Modify the Sample Look and Feel: Main Steps.
Configure Preferences to See UI Control Labels
WebLogic Server provides a configuration option for displaying the labels of the Administration Console's extension points. You use these labels to specify where you want your extension to display. To display these labels:
- In the Administration Console toolbar, click Preferences.
- Select the Extensions tab.
- Select Show Definition Labels.
- Click Save.
A field is displayed over each labeled control on the page. The field displays the value of the control's definitionLabel, prefixed by “Book:” or “Label:” to indicate whether it is a book or a label. See Figure 3-1. Figure 3-1 Control Labels in the Administration Console User Interface