Additional advanced considerations for cooperative portlets

 

Additional advanced considerations for cooperative portlets

 

+

Search Tips   |   Advanced Search

 

 

Constant parameters <portlet:constant-param>

For standard portlets, these can only be specified using the WSDL file. For IBM portlets, constant parameters can be specified using WSDL or Java APIs. Any constant parameters specified for an action will be passed to that action implementation as request parameters when the action is invoked by the property broker. Use constant parameters to provide more information to the action on how it should execute.

Use it like this:

<portlet:constant-param name="defaultMonth" value="January"/>

</portlet:constant-param> 

 

Action-name parameter attribute (actionNameParameter="ACTION_NAME")

This action attribute is used by the property broker to define the action. This is important in JSR 168 compliant portlets because processAction() doesn't have any parameters that carry the action name. In standard portlets, using the action-name parameter is the only way to determine what action was invoked.

Use it like this:

<portlet:action name="SHIPPINGORDERSordersForMonth" 
                type="standard" 
                caption="orders.for.month" 
                description="get.orders.for.specified.month" 
                actionNameParameter="ACTION_NAME"> 
The value of this request parameter will be the value of the name attribute for the registered action.

 

Related information