Enable JSF Navigation
: Drag and drop JSF Page objects. Add an ADF Button to
Page1 and ADF Link to
Page2, and then enable navigation between the two pages.
Portletize the JSF Page : Using the Oracle JSF Portlet Bridge, create a portlet entry from one of the pages.
Deploy the JSF Application : Deploy and test the JSF application using Integrated WLS Server. It generates a WSRP v2 URL for the deployed application, which is used to register the WSRP portlet producer.
Create a WebCenter Application : Use the WebCenter Application template to create a WebCenter application.
Register the JSF Application as a WSRP Portlet Producer : Register the WSRP v2 URL that was generated during deployment and testing of the JSF application.
Add the JSF Portlet to a Page : Add the JSF portlet by dragging and dropping it onto the page. After that, you can run the page to see the portlet in action.
To begin creating a new JSF application, open the Create Application dialog by clicking New Application in the Application Navigator. [ tell me more...]
SimpleApplication, to follow along with the example.
Application templates provide a quick way to create the project structure for standard applications with the appropriate combination of technologies already specified. The new application created from the template appears in the Application Navigator already partitioned into tiered projects, with the associated technology scopes set. The application template you select determines the initial project structure (the named project folders within the application) and the application libraries that will be added. The project templates define the associated technologies. [ tell me more...]
The application template partitions your application into two projects: Model and ViewController. In the Application Navigator, projects display at the top level in the hierarchy. The Application Navigator should look like this: [ tell me more...]
Navigation is enabled between two pages based on the results of certain logical conditions that are executed in a page. For example, if you enter correct credentials in a login page, then the index page displays; otherwise, an error message indicates incorrect user name and password. In this step, you enable navigation between two pages through an ADF Faces button and an ADF Faces link. You can model the navigation cases in the
Diagram tab of the
faces-config.xml file. [
tell me more...]
orderPage1, then select Create as XML Document (*.jspx), and then click OK.
goNextfor the outcome label.
goBackfor the outcome label.
To enable navigation between the JSF pages that were added to the
faces-config.xml file, select
JSF Navigation Case from the Component Palette. [
tell me more...]
After you enable navigation between
orderPage2, you can use the navigation outcome as the action for a button or a link. [
tell me more...]
Oracle JSF Portlet Bridge lets you quickly expose existing JSF applications or task flows as JSR 168 portlets, enabling them to be run remotely. (Portlets must be remote.) When you portletize your JSF application, the application views and your portlet views become one and the same. Thus, you need only maintain one source for both your application and your portlets. Portletizing your JSF application and task flows also eliminates the need to store, maintain, and deploy your portlets separately from your application. [ tell me more...]
portlet.xmlfile is created in the Application Navigator, if it does not exist already.
When you create a portlet entry from your page, the file
portlet.xml is created in the Application Navigator. The Source view for this file looks like this: [
tell me more...]
To quickly test your application, you can deploy it to the Default Server (Integrated WLS Server) that comes packaged as part of the WebCenter extension. Before you deploy your application to the Default Server, you must start the server by selecting Start Server Instance (IntegratedWebLogicServer) from the Run menu. [ tell me more...]
SimpleApplication, to follow along with the example and click OK.
SimpleApplicationand click OK.
You can monitor the status of the deployment in the Deployment - Log. When the project is sucessfully deployed, the log will show Deployment finished message. [ tell me more...]
http:// host: port/ context-root /info.That is,
http://localhost:7101/SimpleApplication/info.The test page contains a WSRP v2 WSDL link that you will register later as a WSRP portlet. For example,
Oracle WebCenter supports Web Services for Remote Portlets (WSRP) versions 1.0 and 2.0. In the WebCenter Preconfigured Server Readme 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...]
To begin creating 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 you application and projects using the WebCenter Application template, the Application Navigator should look like this: [ tell me more...]
To register a WSRP portlet producer with your application, you need to provide enough information for the application to contact the producer and access its portlets. WSRP producer registration information can include connection details, including proxy information if required, timeout period and timeout message, session support information, producer name, security role mapping, and the like. [ tell me more...]
JSF2WSRPProducer, then click Next.
http://localhost:7101/SimpleApplication/portlets/wsrp2?WSDL, then click Next.
When the registration is successful, the newly registered producer, which is the portletized JSF application you created in one of the previous steps, displays in JDeveloper under the Application Resources panel. You can select the SimpleApplication_orderPage1_jspx and drag it onto your JSF page. [ tell me more...]
In this cue card, you will add the SimpleApplication_orderPage1_jspx JSF portlet that you created from the SimpleApplication, to a JSF page in your WebCenter application. [ tell me more...]
myPage.jspxand select Run to see the page with the
orderPage1portlet in a browser.
When you add the orderPage1 JSF portlet to your page, the Design view should look like this: [ tell me more...]
Copyright © 1997, 2009, Oracle. All rights reserved.false ,,,,,,,,,,,,,,,