By default, your portlet will display texthtml as the content type. If you want to By default, your portlet includes view mode. If you selected Editable on the

6-20 Oracle Fusion Middleware Developers Guide for Oracle Portal Figure 6–11 Customization Preferences Page

23. If you want to include additional customization preferences, click Add. The Add

New Preferences dialog box displays. Figure 6–12 Add New Preference Dialog Box

24. In the Name field, enter a name for the new preference. The name must be unique

in the portlet. Use only letters, numbers, and the underscore character.

25. In the Default Values field, enter one or more default values for the new

customization preference. Separate multiple values with commas.

26. Select the Translate Preference check box if you want the customization

preference value to be translated. If you select this option, Oracle JDeveloper generates a resource bundle class with strings for which you can obtain translations. At run time, the portlet references the resource bundle entries.

27. Click OK. Repeat the preceding steps if you want to add more customization

preferences. Note: The Name is always translated, but there is not always a need to translate the Default Value. For example, if the value is an integer, no translation is needed Creating Java Portlets 6-21 28. To edit details for existing customization preferences, select the preference in the Portlet Preferences list and edit the fields in the Preference Details section. 29. To delete an existing customization preference, select the preference in the Portlet Preferences list and click Remove.

30. Click Next to display the Security Roles page

Figure 6–13 . Figure 6–13 Security Roles Page

31. JSR 168 portlets may use J2EE security roles that are defined in web.xml and

referenced in portlet.xml. The Available list displays the security roles defined in the portlet application’s Web deployment file web.xml. Moving a security role from the Available list to the Selected list creates a reference to the security role in the application’s portlet deployment file portlet.xml that refers to the security role in web.xml.

32. If you want to define a new security role, click New Security Role. The Create

New Security Role dialog box displays Figure 6–14 . Figure 6–14 Create New Security Role Dialog Box

33. In the Name field, enter a unique name for the security role.

34. In the Description field, enter a description for the security role, explaining the

access privileges and restrictions this role will have on the portlet.

35. Click OK.