Create JSR 286 Java Portlet - Customization Preferences

Use to:

This page displays in the wizard when you indicate at an earlier step that the portlet is editable. More

Element Description

Portlet Preferences

Displays the preferences that users can edit at runtime.

Add

Click to add preferences to the Portlet Preferences list. Clicking the Add button opens the Add New Preference dialog. In the Add New Preference dialog, specify a preference name, provide a default value, and indicate whether the preference should be translated.

  • Name

    Enter a name for the preference. The name must be unique in the portlet and cannot contain spaces.

  • Default Values

    Enter one or more default values for the preference. Separate multiple entries with commas.

  • Translate Preference

    Select to make the preference translatable. When this option is selected, a resource bundle class is generated with strings for which the developer obtains translations. At runtime, the portlet references the resource bundle entries. This checkbox is selected by default.

Remove

Click to remove the selected preference from the Portlet Preferences list. Preferences that do not appear on the Portlet Preferences list are not editable at runtime.

Note: You cannot remove the default Portlet Title preference.

Preference Details

Use this section to edit preferences on the Portlet Preferences list. Select the preference on the list, and revise its preference details.
  • Name

    The name of the preference. This field cannot be edited.

  • Default Values

    Edit existing values, or enter more values for the preference. Separate multiple entries with commas.

  • Translate Preference

    Select to make the preference translatable. When this option is selected, a resource bundle class is generated with strings for which the developer obtains translations. At runtime, the portlet references the resource bundle entries.


Related Topics

"Introduction to Portlets" in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper

"Building Standards-Based Java Portlets Using JSR 286" in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper