By default, the portlet caption is the same as the Cooperative Portlet Target builder call name. However, this builder can use a resource bundle to declare the caption for the C2A menu.
If the text specified in Input Name
is not a resource key, for example, Order ID
, this builder automatically generates a resource file for the caption text. For example, if you enter a caption of Customer ID
for a model named my_Customer, a resource file named my_customer.properties
is generated in the WEB-INF\\nls
directory. (The file name is generated using the model name.)
A key and value (customer.id.key=Customer ID
) is placed in the resource property file. The key name is generated from the text value. The generated WSDL file uses the customer.id.key
in the caption attribute value. For example:
<portlet:action name="CustomerInfoEvent" caption="the.customer.id.key" description="The Customer ID" />
When creating JSR-168 portlets, you cannot specify a manually created resource file because JSR-168 portlets share a resource file for Property Broker information (for example, caption) and for portlet information (for example, title).
Parent topic: Cooperative Portlet Target builder: wpf7