Use the Cooperative Portlet Target builder to define a Property Broker or C2A (Click to Action) event.
In most common applications of this builder use these inputs to create portlets that can communicate with one another: See this builder input help for a complete description.
- Event Name - Enter a name for this builder call. This also names the event.
- Input Name - Enter the name of the input that is to be passed to the Event Handler from the source. For example, OrderID. This input is required. For JSR 286 portlets this must match the name specified in the source builder.
- Input Type - Select the type of the value that is being passed to the target. Defaults to string.
- Input Type Name - Enter the XML Schema data type name for the input. This must match the “Output Type Name” specified in the source builder. This is not used for JSR 286 portlets. Example: OrderIDType
Key objects this builder creates
When used to create portlets that can communicate with one another, the key objects this builder creates are:
- This builder creates an event where its name is the name specified in the Event Name input. This event will be fired when it receives a message from the source portlet.
- Cooperative Portlet Target - event
Use the Event handler builder call to associate an action with an event. You will use this builder in target models that you wish to receive properties from source models that were created using the Cooperative Portlet Source builder.
To enable the use of the property broker events for standard portlets, you must use the Portlet Wiring Tool to setup a property broker connection between a source and target portlet. This tool is located on the Wires
tab when in the Edit Page layout. See IBM® WebSphere® Portal documentation for more about using this tool.
This builder automatically generates a resource property file and creates a key and value using the text entered. The property file name is created by using the model name. When the file is written, it is placed in the project WEB-INF\classes\nls
directory. The resource file is generated by an Ant task in the build_deployment script.
For example if your model were named test/orders_target.model
, a file named WEB-INF\classes\nls\test\orders_target.properties
Parent topic: Builder help
About using the builder call editor
How do I use cooperative portlets?
Cooperative Portlet Source builder
Event Handler builder