Sample portlets

 

+

Search Tips   |   Advanced Search

 

Overview

The samples described throughout these topics are available from the portlet catalog by searching for navcode 1WP10017Z. The samples are sorted according to topic:

  1. Basic samples
  2. Struts Portlet Framework samples
  3. Cooperative portlet samples

 

Import the sample portlets into RAD

  1. Enable portal development capability

    By default, Application Developer portal development capability is not enabled. To enable...

    Window | Preferences | General | Capabilities | Advanced | Web Developer (advanced) | Portal Development | OK | OK

    If you get a "locked" message when trying to enable, this is a known problem. If not upgraded, upgrade to V7.5.1.

  2. From the menu bar of Application Developer, click...

    File | New | Project

    ...and then select the appropriate portlet project.

    For example, to import jsrViewWorld.war, select Portlet Project (JSR 168). The New Portlet Project dialog opens.

  3. Enter a valid project name. For example, jsrViewWorld.

  4. Deselect Create a portlet.

  5. Verify that version of WebSphere Portal is correct. This should match the version you are using.

  6. Click Finish. The new project is created under the Dynamic Web Projects folder in the Project Explorer.

  7. Right click the new portlet project and select Import > WAR file from the context menu. The Import dialog opens.

  8. Enter the location of the source WAR file that you want to import. For example...

    C:\rad\portlets\version\jsrViewWorld.war

  9. For Web project, select the name of the new portlet project that you just created, for example, jsrViewWorld.

  10. Check Overwrite existing sources without warning.

  11. Click Finish.

  12. Check the contents of the new portlet project for errors.

    If Portlet is disabled, activate. Before activating, you might need to add identification info to portlet.xml: <

 

Related information

 

Parent topic

Understanding the basics