December 13, 2012

Import ADF Taskflow into a Portal as a library

To import a ADF task flow into a web center portal application as a library, follow the below procedure

  • Create a deployment profile for the ADF task flow project as “ADF library jar”
  • Deploy and make adf library jar for the ADF task flow
  • Open the Resource Palette on right side of the JDev
  • Right click on “File System” and select the option “New File System Connection”
  • Provide a name to the connection and directory path where the adf task flow jar file is copied
  • The created connection will be added to the Resource Palette
  • Open the Portal application and select the project to which the task flow should be added
  • In the Resource Palette, expand the connection created and right click on the jar file, select the option “Add to Project”. It will ask for the confirmation to which project it will be added
  • Now expand the jar file and drag and drop the task flow listed in a jsf page as a region in which we want to show the task flow

November 23, 2012

f: loadBundle tag

To implement localization in ADF applications, we create property files with the fields and their values in different languages. For example, I have below property file with some fields and their values in Danish language. I want to display these values in the jsf page to the user.

BODY              =Hoveddel
ITEM               =Varepost
SUBMIT          =Indsend
SUMMARY     =Oversigt
COPY               =Kopier

To use these property fields and to display on the jspx/jsff page, we were provided a tag called “loadBundle” whose syntax is as below.

<f:loadBundle basename="application" var="app"/>

Where “application” is the basename of the property file and “app” is the variable name to be used in the jspx/jsff page to invoke these fields of the property file. If you are using more property files for different language like French,English and Danish, then the property file names should be as follows.

So, whenever the browser language is changed, the corresponding property file will be picked up to display the fields.
And to use the fields in the page, we use el expression syntax like #{app.BODY}
In the loadBundle tag, for the basename attribute, we can also pass the ResourceBundle class instead of property file name.

November 20, 2012

Create or Configure a Pagelet

Below is the procedure to create/configure the pagelet.        
  • Create a portal application and deploy in an application server
  • Login to Pagelet producer. http://<host>:<port:>/pageletadmin
  • In the Navigator select option “Producers” for “Jump to” from the list, will display screen like below
  • Click on Register button, a screen like below will be displayed
  • Enter required fields like Producer Name, WSDL url of the portlet 
  • Click on Test button and then Click Ok 
  •  Now the pagelet is registered which can be viewed in Resources
Consume Pagelet

Pagelet can be consumed in two ways.
1)      Using java script code generated by the pagelet producer
a.       In the Navigation tab, Jump to “Resources” option
b.      From the resources listed, select the registered pagelet and navigate to “Documentation” option as shown in the below screen

c.       Copy the Java Script given for the pagelet and paste in any html or web page, the pagelet will be consumed while running the web pages
2)      By creating a new connection to the pagelet producer in ADF application
a.       Go to Application Resources
b.      Right Click on Connections and select “Pagelet Producer…” option from the list of options available for New Connection

c.       It will display all the registered pagelets in the given pagelet producer
d.      Select the required pagelet and drag & drop on the JSF page as a region

November 16, 2012

Configuring Discussion Server to Webcenter Spaces

Below are the steps to configure the discussion server with webcenter spaces

          1)      Open the EM console: http://<host>:port/em
          2)      Go to “Service Configuration” Option in Webcenter domain as shown in the below screen
           3)      Select “Discussions & Announcements” from the list available

           4)      Click on Add button, you will get the below screen

           5)      Enter details in the screen as shown below

           6)      Make sure you are giving correct address for Server URL and admin user of the discussion server

           7)      And also check policies if you required to any specific one from the list

           8)      Click on Test and then Click on OK

           9)      Restart Spaces managed server for that host

Verifying Discussion Service in Spaces

By following the below steps, you can confirm that the discussion server is configured to webcenter spaces.
           1)      Login to webcenter admin: http://<host>:8888/webcenter
           2)      Go to Administrator àConfiguration àServices
           3)      You can see a Service named Discussions
           4)      Click on the “Discussions” service, will display their settings