Sei sulla pagina 1di 19

<Insert Picture Here>

WebCenter PS3 Master Workshop


Components

Istvan Kiss, Senior Curriculum Developer


Components in WebCenter Portal

• Portlets
• Task Flows
• JavaScript-based Web Gadgets

Oracle Restricted and Confidential – Internal Only


Portlets
Overview

• Consumer, Producer, Portlets


• Communication protocols
• WSRP 2.0 (1.0)
• Proprietary SOAP
• Supported API
• Java Portlet Standard
2.0 = JSR 286
1.0 = JSR 168
• Oracle PDK-Java

Oracle Restricted and Confidential – Internal Only


JPS 2.0 (JSR 286)
New Features: Portlet Coordination

• Portlet Events
• Events are defined on application (producer) level
• Events have payload, JAXB marshalling/unmarshalling
• Individual portlets may process or publish events
• API to create/handle events
• Public Render Parameters
• Public parameters are defined on application (producer) level
• Individual portlets may be associated with these parameters
• No API change, previous render parameter API is used
• Events and parameters are wired by the portlet runtime

Oracle Restricted and Confidential – Internal Only


JPS 2.0 (JSR 286)
Design-time support

• Portlet Producer Application Template


• Portlet Creation Wizard
• Standard-based (JSR 286)
• [Oracle PDK-Java]
• Design Mode
of portlet.xml
• Add/delete/edit portlets
• Application-level settings
• Manage
• Events
• Parameters
• Filters

Oracle Restricted and Confidential – Internal Only


JPS 2.0 (JSR 286)
Design-time support

Notes for WebCenter PS3


• Only JPS 2.0 (JSR 286) portlets can be created
• JPS 1.0 (JSR 168) portlets are automatically converted
• old portlet.xml and oracle-portlet.xml merged
• JPS 1.0 portlets can still be deployed to WLS in PS3 and
consumed by WebCenter Portal applications.

Oracle Restricted and Confidential – Internal Only


JSF Portlet Bridge

• Expose a JSF application or task flow as a portlet.


• Using JSF Portlet Bridge:
• Explicitly: portletize existing JSF (ADF) page or task flow
• Implicitly: choose JSPX as implementation style

public class ADFTablePortlet


extends ADFBridgePortlet

Oracle Restricted and Confidential – Internal Only


Portlet Producer Packaging and
Deployment
• Portlet Producers are packaged to WAR files
• Deployment wizard automatically
modifies deployment profile
for Oracle Portlet Container

• Producer Test Page


http://<server>:<port>/<context root>

Oracle Restricted and Confidential – Internal Only


Consuming Portlets
Register Portlet Producer

• To register portlet producer, use WSRP v2 WSDL


http://<server>:<port>/<context-root>/portlets/wsrp2?WSDL

• Design Time:
Application Navigator >
Connections >
New WSRP Connection

• Run Time:
Administration Console >
Services >
Portlet Producers

Oracle Restricted and Confidential – Internal Only


Consuming Portlets
Add Portlets to Pages

• Design Time:
Drag from portlet producer

• Run Time
Add from resource catalog

Oracle Restricted and Confidential – Internal Only


Consuming Portlets
Wire Portlets

• Manually
• Page variables
• Set portlet parameters with EL expressions
• Use partial trigger to refresh
• Connect event producer and consumer

• Automatically
Portlet run-time in the consumer automatically connects
• event publishers portlets with event processors
• public parameters of different portlets on the same page, if they
have matching names.

Oracle Restricted and Confidential – Internal Only


E20 Portlet Producer
WebCenter Services Portlets

 Pre-packaged portlet producer application


 WebCenter Social Computing Services
• Announcements
• Discussions
• Presence
• Document Library
• Mail
• Recent Activities
• RSS
• Search
• Tagging
• Worklist
• Profile
• Wiki

Oracle Restricted and Confidential – Internal Only


ADF Task Flows
Overview

• ADF component model


• User Interface
• Controller
• Data Model
• Packaged as ADF Library JAR file
• Added to a WebCenter Portal page as ADF component
• Communicates with the page and other components
through:
• Parameters, return value
• Events, publish and process

Oracle Restricted and Confidential – Internal Only


ADF Task Flows
Examples

• WebCenter Services task flows


• Data Presenter task flows
• Custom task flows

Oracle Restricted and Confidential – Internal Only


Web gadgets
Overview

• Typically client-side JavaScript code, communicating with


server-side components.
• Downloaded, than executed by the browser
• Can take parameters to customize UI.

In WebCenter Portal application


• Use <script …> HTML tag even in ADF pages
• Use EL Expressions to pass values to the gadget.

Oracle Restricted and Confidential – Internal Only


Web gadgets
Example: Google gadget

1. Go to Google Gadget site


http://www.google.com/ig
2. Search the required gadget
3. Get the source code
4. Copy and paste it to the
ADF page source
<af:form id="f1">
<af:pageTemplate
value="#{bindings.pageTemplateBinding.templat
eModel}" …>
<f:facet name="content">
<script
src="http://www.gmodules.com/ig/ifr?url=http
…"></script>
</f:facet>
</af:pageTemplate>
</af:form>

Oracle Restricted and Confidential – Internal Only


Web gadgets
Example: Google gadget

Oracle Restricted and Confidential – Internal Only


Q&A

Oracle Restricted and Confidential – Internal Only


Oracle Restricted and Confidential – Internal Only

Potrebbero piacerti anche