Components

A portal component produces HTML output to be displayed in an iView of the portal. The component can provide all the HTML for an iView, or can provide a fragment of HTML to be included within the HTML output of another component.

Content administrators create iViews from portal components. The HTML produced by the portal component is displayed in the iView. For more information on iViews, see the SAP NetWeaver documentation on the Help Portal (http://help.sap.com/)→Start of the navigation pathSAP NetWeaver Next navigation step People Integration  Next navigation step Portal Next navigation step Administration Guide Next navigation step Content Administration Next navigation step iViewsEnd of the navigation path.

Creating a Portal Component

Create a portal component by doing the following:

  1. Write a java class that extends AbstractPortalComponent, which implements IPortalComponent.

  2. Add the java class and any related files (such as HTML or JSP files) to a PAR file.

    For more information on how a PAR file is constructed, see PAR Files.

  3. Modify the deployment descriptor (portalapp.xml file) of the PAR file to provide information about the component, such as the name of the component, the name of the implementing class and configuration properties.

Using SAP NetWeaver Developer Studio

Use the wizards of the SAP NetWeaver Developer Studio to quickly create a portal component, as follows:

  1. Using a wizard, create a portal application project.

  2. Using a wizard, create a portal component in the project.

  3. Add code to the doContent( and other methods of the AbstractPortalComponent to implement the logic of the component.

    For more information on the request cycle for a portal component, and what methods can be implemented, see How Requests Are Handled.