< Day Day Up > |
As mentioned in Chapter 12, "Cooperative portlets" on page 371, each action in a cooperative portlet is associated with a single input parameter and zero or more output parameters that provide information to the action about the objects in which the property value should be bound, such as the request object or the session object. Note: Cooperative portlets using the programmatic approach require that you create a wire; for details about creating wires, see 13.5.4, "Wire portlets" on page 440 and 13.4, "Wiring tool" on page 418. This is because property values are transferred to the target portlets only if wires have been created. Each parameter is associated with exactly one property. Parameters associated with input properties are called input parameters , while those associated with output properties are called output parameters . Instead of actions, target portlets can receive property changes directly through the PropertyListener interface. The actual transfer of the property can be initiated by one of the following methods :
The property broker provides APIs to give developers more control over how portlets handle the input and output properties. In general terms, the programmatic approach might be a better option over the declarative approach when the portlet needs to do the following:
The following packages are provided for portlets to publish properties to the property broker programmatically:
|
< Day Day Up > |