Designing and Implementing Composite Applications : webMethods CAF and OpenCAF Development Help : Working with Portlet Preferences : Creating a Portlet Preference
Creating a Portlet Preference
You can create portlet preferences to store customization and configuration information.
To create a portlet preference
1. Open a portlet application project and do one of the following:
*Double-click a portlet view. In the Bindings view, right-click the portlet and click Add > Portlet Preference.
*Double-click the portlet.xml file. In the Portlet Application Configuration editor, on the Configuration tab, click Preferences for a portlet and click Add.
2. In the Create Portlet Preference wizard, specify values for the following fields:
Field
Description
Name
Required. The name of the preference.
Value
Optional. The default value of the preference. Click Add, and then type a value.
Is Read-Only
Optional. Select the option if you want to prevent the user from modifying the preference.
3. Do one of the following:
*Click Finish to create the preference with default settings.
*Click Next to specify values for the following additional preference attributes:
Field
Description
Display Name
Optional. The preference name displayed on the Properties page for the portlet in My webMethods Server.
Description
Optional. A brief description explaining the purpose of the preference.
Type
Optional. The data type of the preference. The default type is String. If you do not select a value, Designer uses the default value to create the preference.
Scope
Optional. The scope of the preference. The default scope is Value stored per portlet instance. If you do not select a value, Designer uses the default value to create the preference. For more information about preference scopes, see About Portlet Preferences.
Hidden
Optional. Clear the check box to display the preference on the Properties page for the portlet in My webMethods Server.
4. Click Finish. Optionally, if you are working with a legacy portlet, you can click Next to specify additional legacy portlet settings.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback