WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

Advanced programmatic APIs

Some functionality can be achieved programmatically for JSR compliant and IBM portlets. This functionality is implemented using the methods listed in this topic.

 

JSR compliant and IBM portlets

Actions which are registered are active by default as soon as the portlet is initialized and is active. Actions may be explicitly specified to be inactive when the portlet is initialized. Such actions may be selectively activated in individual sessions by invoking the activateActions() method on the PropertyBrokerService interface. The corresponding deactivateActions() call may be made to deactivate actions activated earlier for the session. Only target actions which are active for the current session are invoked to receive property values published by source portlets or passed via user triggers. Actions which are active may be deactivated in the current session by issuing the corresponding deactivateActions() method call on the PropertyBrokerService interface. Deactivated actions are not invoked by the property broker and do not appear in Click-to-Action menus.

Only the names and functions of the following methods are the same for both JSR compliant and IBM portlets. You cannot use a JSR compliant method on an IBM portlet, and you cannot use an IBM method on a JSR compliant portlet. These methods are grouped together only for documentation purposes.

 

Click-to-Action portlets

For Click-to-Action, Java APIs can be used instead of JSP tags. Use Java APIs for advanced scenarios like transmitting a property value as an object rather than a string. With Java APIs a menu can be bound to any arbitrary clickable element in the markup. For more information, refer to the getActionTriggerMarkup or generateActionTriggerControl methods in the PropertyBrokerService interface. If the Java API callgetActionTriggerMarkup or generateActionTriggerControl is used instead of the tag, the property passed to the call must be a registered output property.

See the Destination Guide example in Included cooperative portlet samplesfor more information.

 

Related information