Saturday, June 11, 2011

ADF Bindings : Don’t use #{data} to access Binding Container.

 

In ADF we can access binding container using #{data} or #{bindings} EL. However, #{data} is not recommended.

#{data} – When using data , if we want to access some PageDef binding object then we have to access using data.pagedeffilename.object.

It is not recommended because binding container may not be initialized #{dataBinding.cpx} which contain reference to DataControl , PageDefinitinion , Page.

Sunday, June 5, 2011

Webcenter : Out of Box taskflow for document service

 

If you have webcenter extension installed then webcenter provides you multiple out of box task flow.

if you don’t see this task flow go to tools –> preference and check out webcenter extension is installed or not.

If not installed then go to help –> check for updates and update your jdeveloper with webcenter extension.

image

I have expanded the document service task flow that provide us UCM interface for various requirement.

image

I have used document manager task flow for upload requirement for generic page for each user upload.

We need to deploy this application on Weblogic server that has associated EM.

If you deploy this applicatino in integrated weblogic server then this will not work.

image

I deployed this application on separate weblogic server instance which has Adminserver , UCM_server1 and etc.

UCM : Connecting to UCM from Jdeveloper 11g

 

As I already mentioned how to install UCM , Web center , Spaces , Portlets , Collaboration. Let us now connect to UCM from Jdeveloper before utilizing any UCM content in jdeveloper application based on ADF or web center.

1. First step is to start Weblogic Admin Server and then UCM_server1 which is managed server in my machine.After both are started successfully.

2. Now we need to find out server name , port for UCM.

Login to ucm server , in my case it is http:// localhost:16200/cs  , which should bring up this screen.

image

Expand administration and click “Configuration for machine name”

image

On right hand side screen expand Server Configuration which will give you information regarding port number and instance name.

image

You can look at other useful information on this screen.

You can also get same information from weblogic server too. Login to weblogic EM and go to below path and click configuration.

image

Here you will notice that I have given ip address filter pattern as *.*.*.* , you can configure as per your network need.

Also, Intra doc server port is 7777 which will be useful during socket connection to UCM from jdeveloper.

image

After having port number and server name we can go to jdeveloper to connect to UCM.

image

I gave connection name and connection type to Oracle Content Server.

Now there are three type of RIDC Socket Type web ,socket and socketssl apart from server name and port that we already have it.

Socket Connection

socket uses a intradoc socket connection to connect to the oracle content server. The client IP address must be added to list of authorized address in oracle content server which I have mentioned in configuration of ucm blog.

image

Here we go we can see content from UCM in jdeveloper.

image

Create a jspx page and drag and drop this image as document viewer which is content management service taskflow to see the image in jspx file during runtime.

web Connection

web uses HTTP or HTTPS connection to connect to oracle content server.

RIDC Socket Type : web

URL of the Web Server Plugin : http://localhost:16200/cs/idcplg

(Since I am using UCM 11g)

Admin user name and password.

image

Now if you expand contribution folder you will see the content.

set as primary connection for document service

If you want to make this as default connection then clicking this will write a configuration to adf-config.xml that identifies this connection as default for document service. if document library taskflow is used without connection information then this connection would be considered.

since there are three type of RIDC socket type web , socket and socketssl , you can use any of them based on your application requirement.

Saturday, June 4, 2011

ADF GUI : Create Page Template for ADF Application

 

When you develop application using any technology whether html , asp , jsp , jsf , ADF our first priority is to have as a many reusable component we can have to maintain the consistency in application.

ADF provide us ADF page Template , ADF Declarative Component to achieve reusability , but here we will focus only on page template. After creating page template , we can create page based on page template to maintain look and feel consistency.

ADF Page Template

1. Create page template

image

2. Create custom layout or use in build layout , I would choose in build layout as it satisfies most of our requirement.

image

When you don’t select layout check box then you have to manually design the page by arranging all ADF layout component as shown in next to next diagram.ADF Layout component for custom layout for page template

image

For in build in layout click browse and select the layout.

image

After selecting build in layout , create facets for various page area like footer , header , content , menu , side , left etc..

It is important to create facet to drop your content to be visible on GUI.

So I created four facet footer , menu , header , content.

image

let say you want to use this template for multiple customer then you have to provide different footer , header that consist of client details.  In that situation you have to go to attribute tab and create as many attribute you required ,so that you can utilize this attribute to pass different client information for personalization.

image

So I gave client name , client address , client phone that will be changed for each client login.

We need to associate facet with facet reference. I dragged the facet reference from component to middle section where I will put my major content  and associated it with facet content.

image

Same way we can associate facet with facet reference.

Now I dragged output text in footer and associated attribute client address with it.same way we can do it for other attribute.

image

If you click the source in page template you can see whole definition.

< af:pageTemplateDef var="attrs"

</af:pageTemplateDef>
</jsp:root>

Create Page based on Template

Now let us create the page based on this template and have a view.So I created jspx page with our template.

image

I created the page based on template and you will notice that we can see facet automatically available in new page where we can put our content.

image

I just dragged my region here.

image

Also for attribute which I mandatory we have to provide the value.

image

So this attribute value will be utilized on page that is using the template.

Let us run the page. I have not done good formatting , but I have tried to give you best technical details about using page template.

I ran the page and it showed me both taskflow and attribute title that I supplied.

image