In the New Gallery, expand the Web Tier category and select Portlets. In the Items list, select Oracle PDK-Java Portlet Click OK to display the Provider Details Page

6-34 Oracle Fusion Middleware Developers Guide for Oracle Portal Figure 6–24 General Portlet Information Page

12. In the Portlet Name field, enter a meaningful name for your portlet. This name is

used internally and is not exposed to users. The display name is displayed to users in portlet selection lists, such as the Component Palette.

13. In the Display Name field, enter a display name for your portlet. This name will

be displayed in portlet selection lists, such as the Portlet Repository, where users choose which portlets to add to a page.

14. In the Description field, enter a description for your portlet. This description will

be displayed beneath the portlet name in the Portlet Repository.

15. In the Timeout field, enter the number of seconds to allow for rendering the

portlet.

16. In the Timeout Message field, enter a message to display if the rendering of the

portlet exceeds the timeout value specified.

17. Click Next to display the View Modes page

Figure 6–25 . Creating Java Portlets 6-35 Figure 6–25 View Modes Page

18. In the Show page section, select the implementation style for Shared Screen mode

from the Implementation style list: ■ Select JSP to implement the portlet’s Shared Screen mode as a JavaServer Page. In the File name field, enter the name of the file to be generated by the wizard. ■ Select HTTP Servlet to implement the portlet’s Shared Screen mode as an HTTP servlet. In the Package name field, enter the name of the package that contains the HTTP servlet. In the Class name field, enter the Java class to be referenced in conjunction with the portlet’s Shared Screen mode. ■ Select HTML File to implement the portlet’s Shared Screen mode as an HTML file. In the File name field, enter the name of the file to be generated by the wizard. Note that, when you choose HTML File, it results in the following being added inside the renderer element of your provider.xml file: showPage class=oracle.portal.provider.v2.render.http.ResourceRenderer resourcePathhub_insideindex.htmlresourcePath contentTypetexthtmlcontentType charSetUTF-8charSet showPage charSet tells the provider what character set to use to encode the HTML page. The default character set specified by the wizard is UTF-8. If you require character set encoding other than UTF-8, you must update this element of provider.xml accordingly. ■ Select Java class to implement the portlet’s Shared Screen mode as a Java class. In the Package name field, enter the name of the package that contains the Java class. In the Class name field, enter the name of the Java class. For more information about Shared Screen mode, see Section 6.1.1.1, Shared Screen Mode View Mode for JPS.