In the previous step of this tutorial, Creating a non WebSphere Commerce portlet application project you defined the new portlet. You will now display both the new Commerce Enabled Portal portlet and the third party application portlet and send a message between them.
To create a new page to display the new portlets, do the following steps:
- In the Project Navigator, locate the portal project you created when you installed and configured the development environment.
- Right click on the project. From the menu, select Run on Server. The Server Selection window displays.
- Select the server. Click Finish. When the server finishes running, the Winstons store displays in the Web browser.
- In the Web browser, select Administration. The Portal User Interface page displays.
- In the Portal User Interface page, select Manage Pages.
- From the Manage Pages list, select My Portal. Click New Page. The New Page: My Portal page displays.
- In the Title field, type the name of the new page, for example, Sample. Click OK. A page displays stating that the page has been created successfully. Click OK. The Manage Pages page redisplays.
- In the Manage Pages list, find the new page (Sample). Click the pencil icon that corresponds to the new page. The Edit Layout page displays.
- In the Edit Layout page, accept the default layout of the page (the page is divided into two). You will add one portlet to each half of the page.
- In the first half of the page, click Add portlets. A search page displays.
- Search for the NonCommerce portlet you created. In the Search for field, type NonCommerce. Click Search. The NonCommercePortlet displays in the portlet list.
- Select the NonCommercePortlet and click OK. The NonCommercePortlet displays in the first half of the page.
- In the second half of the page, click Add portlets. A search page displays.
- Search for the GenericCatalog portlet you created. In the Search for field, type Generic. Click Search. The GenericCatalogPortlet displays in the portlet list.
- Select the GenericCatalogPortlet and click OK. The GenericCatalogPortlet displays in the second half of the page. Your portlets will display in this configuration on the page.
- Click Done. The Manage Pages page displays.
- Select the My Portal tab. The Winstons store displays.
- In the title bar, locate Sample. You may have to scroll to find it. Click Sample. The Sample page displays, with the two new portlets.
- Test the communication between the two portlets by selecting a catalog in the NonCommercePortlet and clicking Retrieve. The catalog you select should display in the Generic Catalog Portlet.
Congratulations! You have completed the tutorial.