Portlet Factory, Version 6.1.2


 

Creating a Cooperative Portlet Target Model

In creating cooperative portlets, you create the target portlet first. When developing a cooperative portlet application, develop a target portlet first to define the type of data or events you want to receive. This approach will simplify your design decisions when developing source portlets. To develop a target portlet, add the following to your model:

  1. Add a Cooperative Portlet Target builder to your model and use this builder to define the event.

    You must specify the Event Name, Input Name, Input Type, Input Type Name, Namespace and Caption inputs.

    It is also important to remember that the input information in the Cooperative Portlet Target builder must match the output information specified in the Cooperative Portlet Source builder of any source portlets that wish to interact.

  2. Add an Event Handler builder to the model.

    The Event Handler will perform an action when an event occurs.

    In this case, you want to make sure that the Event Name input matches the Event Name input from your Cooperative Portlet Target builder to ensure that the event will trigger the action.

    Note: Prior to specifying the Event Handler builder, you should develop the method or page that the Event Handler will execute. This will allow you to select the event from the Action drop-down list in the Event Handler builder call editor, rather than typing it in manually.

  3. Add a Portlet Adapter builder to the model.

This builder call provides your model with a portlet title so that the portlet can be added to a page in IBM® WebSphere® Portal. Since cooperative portlets were designed to function in a WebSphere Portal environment, it is important to remember this simple, but important, step.

Parent topic: How do I use cooperative portlets?


Library | Support |