Skip navigation.

Getting Started with Portal Development

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Getting Started with Portal Development

This document provides an introduction to building portals with BEA WebLogic Workshop Platform Edition. It includes information on the following subjects:

 


Before You Begin

These instructions presuppose a successful installation of BEA WebLogic Workshop Platform 8.1.

 


Development Tools for WebLogic Portal 8.1

The development functionality exposed in previous releases has been replaced with WebLogic Workshop. Creating portals and portlets, previewing the application, and packaging the end result for deployment onto a server or cluster are all done inside WebLogic Workshop.

 


Starting the Development Environment

From the Windows Start menu, select Programs > BEA WebLogic Platform 8.1 > WebLogic Workshop 8.1

This starts the development environment, but does not start the server.

 


Creating a New Portal

If you have not yet created a portal domain on your development machine, create one with the Configuration Wizard. For instructions, see the Overview of Platform Configuration on the BEA documentation Web site.

  1. Create a new portal application. In WebLogic Workshop Platform Edition, choose File>New>Application.
  2. Performing this step ensures you have a server (config.xml) for your portal application to use.

  3. In the New Application window, select Portal Application in the right pane.
  4. In the Directory field, click Browse to set the location of the new application. The application will be created in a subdirectory of the directory you select.
  5. Make sure the Name field contains the name of the application. This name will be the application directory.
  6. In the Server field, click Browse and select the config.xml file for the server (domain) you want to use.
  7. The config.xml file is in the portal domain directory you created.
  8. Click Create. The application directory appears in the Application window. The application contains the WebLogic Administration Portal (contained in Modules/adminPortal.war), a datasync directory (data) for interaction management development, and application-level EJBs and APIs.
  9. Create a portal Web project for your application. Right-click the application directory in the Application window and choose New>Project.
  10. In the New Project window, select Portal Web Project in the right pane.
  11. In the Project name field, enter the name for the portal Web project. This will be the name of a Web application directory.
  12. Click Create. The project folder appears in the Application window. The portal Web project contains WebLogic Portal JSP tags, Web-application-level APIs, and default portal framework files.
  13. If you have any external projects or files you want to include in your portal application, perform any of the following steps:
  14. The sample portlets are located in <BEA_HOME>\<WEBLOGIC_HOME>\samples\portal\portalApp\sampleportal\portlets. There are other useful sample files throughout the <BEA_HOME>\<WEBLOGIC_HOME>\samples directory.

    You now have the resources and directories for developing interaction management functionality and creating portals to surface applications.

  15. To create a portal, right-click the portal Web project folder and choose New > Portal. Enter a filename for the portal (keep the .portal extension) and click Create.

 


Previewing a Portal

WebLogic Workshop allows you to preview the current project as you work.

  1. In the WebLogic Workshop menu, choose Portal>Open Current Portal.
  2. If the server has not been started, you will be asked to start the server. Choose Yes.
  3. Once the server is started, you can preview the current portal by navigating to the .portal file.

 


Where to Go Next

See the following documents for background information, as well as instructions for managing portals:

 

Back to Top Previous Next