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 (help.sap.com) ® SAP NetWeaver ® People Integration ® Portal ® Administration Guide ® Content Administration ®
iViews.
Create a portal component by doing the following:
...
1. Write a java class that extends AbstractPortalComponent, which implements IPortalComponent.

Note: You could write your own class that implements IPortalComponent, but it is strongly advised to simply extend AbstractPortalComponent.
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.
Use the wizards of the 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.
