Designer 10.15 | webMethods CAF and OpenUI Development | Working with Portlet Preferences | Specifying a Portlet Preference Validator
 
Specifying a Portlet Preference Validator
You can specify a validator class for your portlet preferences.
*To specify a portlet preference validator
1. Open a portlet application project and double-click the portlet.xml file to open the Portlet Application Configuration Editor.
2. On the Configuration tab, for the portlet with which you want to work, click Preferences.
3. Do one of the following:
*Click Browse to select a pre-existing validator type. Begin typing the name of the validator in the Select Entries field to filter the available choices. The validator class must implement the PreferencesValidator interface.
*Click the Validator link to open the New Java Class wizard. Specify attributes for the class that you want to create as a validator and click Finish. The newly created class opens in the Java editor.
4. Save your changes.
Related Topics