Developer Tools
JDeveloper
Oracle WebCenter Framework is an extension for JDeveloper that assists with the creation and deployment of WebCenter applications, Oracle PDK-Java portlets, and standards-based Java portlets (JSR 168). Oracle WebCenter Framework provides two portlet creation wizards: Create JSR 168 Java Portlet wizard and Create Oracle PDK-Java Portlet wizard. Use the Create JSR 168 Java Portlet Wizard to build portlets based on the JSR 168 standard. Use the Create Oracle PDK-Java Portlet Wizard to build portlets based on the Oracle Application Server Portal Developer Kit for Java (Oracle PDK-Java) APIs.
Create an Oracle PDK-Java Portlet: Use the Create Oracle PDK-Java Portlet wizard to create a Java portlet for deployment to J2EE-compliant Web servers.
Create a Standards-based Java Portlet (JSR 168): Use the Create JSR 168 Java Portlet wizard to create a Standards-based Java Portlet (JSR 168), which runs on portals enabled for Web Services for Remote Portlets (WSRP).
Create a WebCenter Application: Use the WebCenter Application template to create a WebCenter application.
Register an Oracle PDK-Java Portlet Producer: Use the Register Oracle PDK-Java Portlet Producer wizard to register an Oracle PDK-Java portlet producer. Once the producer is registered, your consumer (for example, a WebCenter application) can communicate with portlets through this producer.
Register a WSRP Portlet Producer: Use the Register WSRP Portlet Producer wizard to register a WSRP portlet producer. Standards-based Java portlets (JSR 168) deployed to Oracle's portlet container are automatically exposed through WSRP. Once the WSRP portlet producer is registered, your consumer, such as a WebCenter application, can communicate with portlets through this producer.
Add Portlets to a JSF Page: Add portlets to a JSF page by dragging and dropping them onto the page. After that, you can run the page to see the portlets in action.
You can create your Oracle PDK-Java portlet and Standards-based Java portlet (JSR 168) in any application scoped to create portlets. In this cue card, we will use the Portlet Producer Application template. This template preconfigures your application for creation of portlets. [ tell me more...]
MyWebCenterPortletApp, to follow along with the example.
When you create your application using the Portlet Producer Application template, the Application Navigator should look like this: [ tell me more...]
You can use the Create Oracle PDK-Java Portlet wizard to create your own Java portlets using Oracle's PDK-Java APIs. The Create Oracle PDK-Java Portlet Wizard simplifies portlet development by providing commonly required functions such as personalization and portlet parameterization. This wizard enables you to create portlets without having to deal directly with the complexity of communications between the web server and the portlet producer. [ tell me more...]
myprovider as the name, and ensure all the checkboxes are selected.
MyPDKPortlet as the portlet name,
My PDK Portlet as the display name, and
This is my Oracle PDK-Java portlet. as the description. Then select the default values for the timeout interval information and click
Next
.
When you create your Oracle PDK-Java portlet, the Application Navigator should look like this: [ tell me more...]
JSR 168 is a standard Java application programming interface (API) for creating Java portlets that run on portals enabled for Web Services for Remote Portlets or WSRP. The JSR 168 standard defines the following: [ tell me more...]
MyPortlet for
Name and
Class and select the
Enable users to edit portlet content and
Enable inter-portlet communication using Oracle WSRP V2 extensions checkboxes, then click
Next
.
When you create your JSR 168 Java portlet, the related files display under the
Portlets project of your application. One of the generated files,
portlet.xml, which displays under
WEB-INF, defines the characteristics and behavior of your JSR 168 portlet, for example, the different display modes that your portlet supports. The options you selected in the Create JSR 168 Java Portlet wizard are also saved to this file. [
tell me more...]
Now that you have created a portlet application, you must create a new application to consume your portlets. In this cue card, we will create a WebCenter application using the WebCenter Application template. To create a new WebCenter application, open the Create Application dialog by clicking New Application in the Application Navigator. [ tell me more...]
MyWebCenterApp, to follow along with the example.
The WebCenter Application template contains the necessary technology scope for including Oracle WebCenter features in your application, such as Oracle Composer, the Resource Palette, task flows, content integration, and WebCenter Services. The WebCenter Application template also divides the application into two projects: [ tell me more...]
When you create your application and projects using the WebCenter Application template, the Application Navigator should look like this: [ tell me more...]
To enable your PDK-Java portlet to be consumed by your application, you must first deploy the portlet to a portlet producer. Then, you can register the portlet producer with your application and use the portlet. For this example, however, you will register one of the prepackaged Oracle PDK-Java portlet producers that ships with the Default Server (Integrated WLS Server). To retrieve the URL of your preconfigured PDK-Java portlet producer, start the Default Server by selecting Start Server Instance (IntegratedWebLogicServer) from the Run menu. [ tell me more...]
The WebCenter Preconfigured Server Readme page includes links to preconfigured portlet producers such as WSRP, PortalTools, and PDK-Java. [ tell me more...]
http://localhost:7101/jpdk/providers.
To access the producer URL, click the PDK-Java Sample Producer link. [ tell me more...]
The PDK-Java producer that you registered is now included as a resource for your application: [ tell me more...]
To enable your WSRP portlet to be consumed by your application, you must first deploy the portlet to a portlet producer. Then, you can register the portlet producer with your application and use the portlet. For this example, however, you will register one of the prepackaged WSRP portlet producers that ships with the Default Server (Integrated WebLogic Server). To retrieve the URL of your preconfigured WSRP portlet producer, start the Default Server by selecting Start Server Instance from the Run menu. [ tell me more...]
The WebCenter Preconfigured Server Readme page includes links to preconfigured WSRP Portlet Producers. [ tell me more...]
http://localhost:7101/portletapp/portlets/wsrp2?WSDL.
Oracle WebCenter supports Web Services for Remote Portlets (WSRP) versions 1.0 and 2.0. In the WebCenter Preconfigured Server page, you will find sample preconfigured portlets for both versions. In this example, you will use the WSRP v2 WSDL link. WSRP 2.0 support is for a preliminary (that is, pre-production) version of WSRP 2.0. This standard provides support for inter-portlet communication and export or import of portlet customizations. [ tell me more...]
MyWSRPProducer as the name and click
Next
.
http://localhost:7101/portletapp/portlets/wsrp2?WSDL. Leave the other fields blank, then click
Next
.
When registration is successful, the newly registered producer displays in JDeveloper under Application Resources. All the portlets of the producer are listed under this WSRP producer. You can select these portlets and drag them onto your JSF page. [ tell me more...]
Now that you have registered the portlet producer, you can add the portlet to your JSF page. To add portlets to a JSF page, first create a JSF page, then drag the portlets (Oracle PDK-Java and WSRP) onto the page from the Application Resources panel. You can then run the page. [ tell me more...]
myPage as the name for your JSF page.
myPage.jspx and select
Run to see the page with its portlets in a browser.
When you add portlets to your JSF page, the Design view should look like this: [ tell me more...]
Copyright © 1997, 2009, Oracle. All rights reserved.