Oracle WebCenter Portlet Toolkit for .NET Development Guide

     Previous Next  Open TOC in new window   View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Creating a WSRP Portlet Using the .NET Portlet Toolkit

To create a new WSRP portlet, use the Microsoft Visual Studio 2005 templates provided with the Oracle WebCenter Portlet Toolkit for .NET. The templates are pre-configured to include references to required assemblies, including the .NET Portlet API.

A new portlet project includes a simple portlet page in the Default.aspx/Default.aspx.cs files. This page includes the namespaces necessary for accessing the WSRP Portlet API classes such as PortletPropertyAttribute and the WSRPPortletContext.

Follow the steps below to create a new portlet using the WSRPPortletPage template.

  1. Create a new WSRP portlet project in Microsoft Visual Studio 2005. Note: Oracle WebCenter Interaction (“ALI”) Portlet and Preference Page templates cannot be used for WSRP portlets.
    1. To create a new web application project, follow the instructions below:
      1. Click File > New Project
      2. Under Project types, select Visual C#.
      3. In the My Templates list, select WSRP Portlet Web Application.
      4. Enter a name for the project.
    2. To create a new Web Site project, follow the instructions below:
      1. Click File > New > Web Site.
      2. Select the language option: C#.
      3. In the My Templates list, select WSRP Portlet Project. (Oracle WebCenter Interaction (“ALI”) Portlet and Preference Page templates cannot be used for WSRP portlets.)
      4. Enter a name for the project.
  2. Create a new portlet page:
    1. In the Solution Explorer, right-click on the root of the project and select Add New Item….
    2. In the My Templates list, select WSRP Portlet Page.
    3. Save the page with an intuitive name (for example, “HelloWorld.aspx”).
  3. Add the necessary functionality to the portlet page: If the portlet should support CSS styling applied by the WSRP Consumer , you must use the CSS class names defined in the WSRP specification.
  4. Register the portlet with the WSRP Producer. For details, see Registering a Portlet with the WSRP Producer.
  5. Deploy the portlet in WLP. For details, seeConsuming a .NET WSRP Portlet in Oracle WebLogic Portal.

  Back to Top      Previous Next