Creating a portlet
You can create a new portlet, add an existing portlet to the portlet deployment descriptor, or remove the selected portlet from the portlet deployment descriptor.
To create a new portlet, follow these steps:
Adding an existing portlet
To add an existing portlet, follow these steps:
Configuring a portlet
To configure a portlet, first select it from the Portlets list box and specify the following values:
Property Name | Description |
---|---|
Portlet class | The canonical name of the portlet selected in the Portlets list box. Select the Browse button to open the Select Portlet dialog and create a new mapping in the deployment descriptor. Used in the <portlet-class> node. |
Property Name | Description |
---|---|
Language | The locale information used in the xml:lang attribute to localize the Display name and the Description. The default value for the xml:lang attribute is English (en). Used in the xml:lang attribute of <display-name> and <description> in <portlet>. |
Display name | An administrative name used to identify the portlet. It is only shown in GUI tools. Used in <display-name> in <portlet>. |
Description | A descriptive text about the portlet. This text is not displayed to end users. Used in <description> in <portlet>. |
Property Name | Description |
---|---|
Resource Bundle | To provide language specific portlet information, like title and keywords, resource bundles are used. Set the fully qualified class name of the resource bundle. Used in <resource-bundle>. |
Supported Locales | Declare locales the portlet supports at run-time. Used in <supported-locale>, and to locate the resource bundle file for each locale. |
Portlet Info | Specify the following portlet information for each supported locale.
Select a supported locale above and specify the portlet information for the
selected locale. The specified information will be saved in resource bundle
files.
|
Removing a portlet
In the Portlet Deployment Descriptor, highlight the portlet you want to remove, then click Remove.