Showing posts with label how to. Show all posts
Showing posts with label how to. Show all posts

Thursday, March 27

WCP (11.1.1.1.8) Using Navigation Model with Content Query


Goal

Using Content Query with Navigation Model in WebCenter Portal and specify your own content presenter template online.


Environment

WebCenter Portal 11.1.1.8
(Sub-)Portal created with the Portal Template
Some Documents to Display  in a Folder

How to get the FolderID for the CMIS Query ?






Add a CMIS Query to the Navigation Model



CMIS Query with the correct FolderID



IN_TREE - Parameter:

     ucmserver - Content Server Connection

     IDC:Folder/{dCollectionID}


Define our own Content Presenter Template on the Navigation Page




Add a Parameter:

templateView - oracle.webcenter.content.templates.default.detail

The Name of the templateView could be found in the Content Presenter Assets. Select the Asset and show the properties. You get the following informationen:



The view-id is the Parameter you are looking for and by the way no JDeveloper-WebCenter-Portal-Round-Trip-Development is needed !  

Thursday, September 6

Using Oracle EM 11g FMC and ADR 11.1.1.6.0 with JDev 11.1.2.2.0


Goal

Using Oracle EM 11g FMC and ADR 11.1.1.6.0 with JDeveloper 11.1.2.2.0 - Software


Environment

OL 6.2
JDeveloper 11.1.2.2.0 - Software


Software

OTN: ADR libraries 11.1.1.6.0 (Application Development Runtime)


Patches

MOS: 5912518 - OPatch v11.1.0.0.1
MOS: 13656274
MOS: 6880880 - OPatch  v11.1.0.9.7 
MOS: 13656372


References

MOS: How To Install the ADF Runtime Libraries 11g Release 2 in WebLogic Sever 10.3.5 / 10.3.6 ? [ID 1328698.1]


Install ADR 11.1.1.6.0

[oracle@endvm software]$ unzip ofm_appdev_generic_11.1.1.6.0_disk1_1of1.zip 
:
[oracle@endvm software]$ cd Disk1/
[oracle@endvm ~]$ export JDK_HOME=/usr/jdk1.6.0_33


[oracle@endvm Disk1]$ ./runInstaller 
:
Set Oracle Middleware Home =  /u01/app/oracle/product/11.1.2/middleware inside OUI.


Install OPatch Version 11.1.0.0.1

a) For Standalone JDeveloper/Standalone WLS install type:
   Download the latest version of OPatch(11.1.0.0.0)via BUG 5912518 from My
   Oracle Support (formerly Metalink).
 
   Patch: p5912518_111000_GENERIC.zip
   Please follow the instructions to install this patch.
 
b) For OUI (WebCenter/SOA/Classic/etc) install type:
   Download the latest version of OPatch (11.1.0.9.4 or higher)via BUG 6880880
   from My Oracle Support (formerly Metalink).

[oracle@endvm software]$ export JDEV_HOME=/u01/app/oracle/product/11.1.2/middleware/jdeveloper/
[oracle@endvm ~]$ export JDK_HOME=/usr/jdk1.6.0_33
[oracle@endvm software]$ unzip p5912518_111000_GENERIC.zip
[oracle@endvm software]$ mv 5912518/OPatch/ $JDEV_HOME/
[oracle@endvm ~]$ export ORACLE_HOME=$JDEV_HOME
[oracle@endvm ~]$ cd $ORACLE_HOME/OPatch

[oracle@endvm OPatch]$ ./opatch lsinventory -jdk $JDK_HOME


Install Patch 13656274

[oracle@endvm jdeveloper]$ cd /home/oracle/software
[oracle@endvm software]$ unzip p13656274_111160_Generic.zip
[oracle@endvm software]$ cd 13656274
[oracle@endvm 13656274]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@endvm 13656274]$ export ORACLE_HOME=/u01/app/oracle/product/11.1.2/middleware/oracle_common


Install OPatch Version 11.1.0.9.0 (6880880)

Patch 13656372 requires OPatch version 11.1.0.9.0.
The OPatch version being used (11.1.0.0.1) doesn't meet the minimum version required by the patch(es). Please download latest OPatch from My Oracle Support.
[oracle@endvm software]$ rm -rf /u01/app/oracle/product/11.1.2/middleware/jdeveloper/OPatch/
[oracle@endvm software]$ unzip p6880880_111000_Linux-x86-64.zip
[oracle@endvm software]$ mv 6880880/OPatch/ $JDEV_HOME/


Install Patch 13656372

[oracle@endvm software]$ unzip p13656372_111160_Generic.zip[oracle@endvm 13656372]$ cd ..[oracle@endvm software]$ cd 13656372/[oracle@endvm 13656372]$ opatch apply -jdk $JDK_HOME


upgradeADF

[oracle@endvm bin]$ cd /u01/app/oracle/product/11.1.2/middleware/oracle_common/common/bin
[oracle@endvm bin]$ ./wlst.sh

wls:/offline> upgradeADF('/u01/app/oracle/product/11.1.2/middleware/user_projects/domains/test.adf.domain')Target Library "jsf#2.0@1.0.0.0_2-0-2" to JRF "AdminServer"wls:/offline>exit()

Exiting WebLogic Scripting Tool.

Exception: java.lang.ClassNotFoundException: javax.faces.application.ProjectStage

<06 .09.2012=".09.2012" 18:32="18:32" mesz="mesz" uhr="uhr">
<06 .09.2012=".09.2012" 18:32="18:32" mesz="mesz" uhr="uhr">
<06 .09.2012=".09.2012" 18:32="18:32" mesz="mesz" uhr="uhr">
java.lang.ClassNotFoundException: javax.faces.application.ProjectStage


Solution

You have not upgrade the Domain !


Test



Wednesday, August 15

ADF News Session: CI and OTPC

By the way i miss to post my last ADF News Session from July 2012 about Continuous Integration and Oracle Team Productivity Center. Content is in German.

Monday, January 2

ADFrc: Why my table is not stretched ?

Introduction
Within my ADF Project Session 3 last month in the exercise of the ADF layout strategies was one of the most common questions:

Why is the table (using the available columns) are not stretched to 100% of the width and height?


Issues

Simon: "I use PanelStretchLayout but the table is not stretched !"
Mentor: "Check your site structure for flow layout!"

image 
One of the most common causes for this appearance is the fact that the layout concept has changed from stretch to flow without the developer has to get it.

Once a UI Component is further thrown into a facet Oracle JDeveloper adds a PanelGroupLayout automatically.  This change the stretch concept to flow. Maybe the developer will add a headline.

Image(20) Image(21)

Solution

Stretch will change into Flow if more than one component is part of the subtree!
Verify your layout in the Structure Panel, even if you do not dare JDeveloper!


Issues
Rudolf: "I use StretchPanelLayout but nevertheless, the columns of my table is not spread over the entire width!"
Mentor: "Do not think in HTML and CSS (width: 100%) - think in components."



image

If an area is stretched, the UI Component is scaled, but not automatically all other UI Components in the subtree. I.e. In this case, the CollectionPanel is scaled to a width of 100%. As each column of the table should be widened, is not defined.

Solution

image 
Use ColumnStretching property to define a strategy to fill the empty space !





af:table Oracle Fusion Middleware Tag Reference for Oracle ADF Faces (11.1.2)
Geometry Management
This component can be stretched by a parent layout component that stretches its children, e.g. panelStretchLayout. When stretching this component, the only valid setting for autoHeightRows is "-1".
When NOT stretched, autoHeightRows="0" can be used to size the height to the fetch size, which is similar to dimensionsFrom="children". Please refer to 'autoHeightRows' attribute for more information. Use the columnStretching attribute to configure stretching of the children column components

image
References
JDeveloper Workspace
Oracle Fusion Middleware Tag Reference for Oracle ADF Faces (11.1.2)

Thursday, December 15

HowTo: Set Default Run Target to TaskFlow Activity

Goal

A Fusion Web Application (ADF) should be within an application [workspace] independently selected from the context start using the keyboard.

Context

- JDeveloper 11gR2

- Fusion Web Application (ADF)

Solution

Image(19)

Choose: Run / Choose Active Run Configuration / Manage Run Configuration..

Image(16)

Select: Run Configuration / Default

Choose: Edit..

Image(17)

Deselect: Attempt to Run Active File Before Default

Select Default Run Target: ..\WEB-INF\adfc-config.xml [your task-flow file]

Image(18)

Choose: Launch Settings / ADF Task Flow

Select View Activity: home [your start page]

Choose: Ok

Choose: F11

Tuesday, January 22

how-to-jdev-10.1.3.3: Use ADF BC Model as EJB Session Bean

One of my customer ask we how to use a ADF BC Model in remote mode with JDeveloper 10.1.3.3. He told me he could found no documentation. So over the years of different version and introduction of ADF Binding this deployment option is maybe not in the main focus. But it is realy easy when you know what steps you must configure.
1.) Configure ADF BC Model for EJB Session Bean Deployment
2.) Change the configuration inside BC4JDataControl Properties in the UI
So listen to my not perfect viewlet here.