Click Next to display the General Portlet Information Page.

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. 6-36 Oracle Fusion Middleware Developers Guide for Oracle Portal

19. If you want to implement Full Screen mode for your portlet, select Show details

page, then select an Implementation style as described earlier for Show page. For more information about Full Screen mode, see Section 6.1.1.5, Full Screen Mode PDK-Java.

20. Click Next to display the Customize Modes page

Figure 6–26 Figure 6–26 Customize Modes Page

21. Edit page

is selected by default. If you want to implement Edit mode for your portlet, select an Implementation style as described earlier for Show page. If you do not want to implement Edit mode, clear the Edit page check box. For more information about Edit mode, see Section 6.1.1.2, Edit Mode JPS and Pdk-Java.

22. If you want to implement Edit Defaults mode for your portlet, select Edit Defaults

page , then select an Implementation style as described earlier for Show page. For more information about Edit Defaults mode, see Section 6.1.1.3, Edit Defaults Mode JPS and PDK-Java.

23. Click Next to display the Additional Modes page

Figure 6–27 .