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:
*Open a portlet view in the editor and in the Bindings view, right-click the portlet and click Add > Portlet Preference.
*Double-click the project’s portlet.xml file to open the Portlet Configuration Editor, expand the portlet node you want to work with, click Preferences, and then click Add.
2. In the Create Portlet Preference wizard, type a name for the preference in the Name field.
3. (Optional) Click Add and then type a default value for the preference.
4. Select Is Read-Only if you want to prevent the user from modifying the preference.
You can click Finish at this point to create the preference with default settings, or you can click Next to specify the following preference attributes:
5. On the Create Portlet Preferences (Extended) page, type a Display Name that will appear in the portlet’s properties in My webMethods Server.
6. In Description, type a brief description explaining the purpose of the preference.
7. From the Type list, choose a data type for the preference. The default is String.
8. From the Scope list, choose the scope for the preference. For more information, see About Portlet Preferences. The default is Value stored per portlet instance.
9. Clear the Hidden check box to display the preference on the Properties page for the portlet in My webMethods Server.
10. Click Finish to create the preference with the specified settings. Optionally, if you are working with a so-called legacy portlet (version 6.5, pre-JSR 168), you can click Next to specify additional legacy portlet settings.
The newly created preference appears in the Binding view, under the selected portlet.
Copyright © 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback