Content Types and Portlet Modes
|
Use this list to specify the types of content and display modes your portlet will support. Select a display mode on this list to specify an implementation method for the selected mode.
Add
Click to select additional content types and to specify additional display modes. To choose additional content types, select a content type from the Content Types and Portlet Modes list, and then click Add. Clicking Add opens the Content Types dialog, from where you can select from the list of available content types, or click New Type to create a new type. Select from:
-
text/html - The portlet supports text encoded with HTML. This is the default selection.
-
text/xml - The portlet supports text encoded with XML.
-
text/plain - The portlet supports plain, unencoded text.
-
text/vnd.oracle.mobilexml - The portlet supports text encoded with Oracle Mobile XML. Note however, that WebCenter Portal does not support Oracle Mobile XML.
-
application/xhtml+xml - The portlet supports text encoded with XHTML.
-
application/xml - The portlet supports any XML content, including XHTML.
To choose additional display modes, select a display mode from the Content Types and Portlet Modes list, and then click Add. In the Portlet Modes dialog, select from the list of available modes. Select from:
-
view - To define a display mode for viewing the portlet.
-
edit - To define a display mode for a portlet instance's display settings. This mode is available only if Enable users to edit portlet content was selected on the first page of the wizard.
-
help - To define a display mode for the portlet's Help content.
-
about - To define a display mode for the portlet's About content.
-
config - To define a display mode for the portlet's configuration settings. How you use this mode is for you to decide. One possible implementation is a mode for setting up database connection details.
-
edit_defaults - To define a display mode for the portlet's properties.
-
preview - To define a display mode for previewing the portlet.
-
print - To define a printer friendly portlet display mode.
Remove
Click to remove a content type or portlet mode from the Content Types and Portlet Modes list.
|
Implementation Method
|
Specify an implementation method for each portlet display mode. Select a mode on the Content Types and Portlet Modes list, and then select a radio button next to the implementation method to use for the selected mode.
-
Generate JSP
Select to generate a JavaServer Page (JSP) for the selected portlet display mode. When you complete the wizard, the generated JSP displays in the Application Navigator where it can be selected for further development. This is the default selection for all portlet display modes.
This selection enters code in the generated portlet java class that routes requests for the given mode to the generated JSP.
-
Generate ADF-Faces JSPX
Select to generate JSPX files.
The generated JSPX files may contain ADF components. For example, the edit mode mark up will contain ADF controls for submitting personalization values. In addition, backing bean java files are generated for edit or edit_defaults mode pages.
-
Map to Path
Select to map the selected mode to an existing (or planned) target. Enter the URL in the provided field. With this selection, you must write the targeted resource or file yourself. The target could be, for example, a JSP, a servlet, or an HTML file.
This selection enters code in the generated portlet java class that routes requests for the given mode to the specified target.
-
Custom Code
Select to implement the selected mode through a custom coded object. This selection generates a skeleton method in the generated portlet Java class to render content (private void do<MODE_NAME>Html ). You must update this code to render useful content.
|