:::: MENU ::::
Browsing posts in: OAF

Oracle Application Framework – HelloWorld Page

Hi guys, in this post you will learn how to create your first Page by using OAF (Oracle Application Framework).

  1. Open JDeveloper (you can download it from Oracle website).
  2. Create a New OA Workspace and Empty OA Project

01Machine generated alternative text:
Oracle Applications Project Wizard -. Step I of 3: Project Directory, File Name and De...
Eroiect Name:
rHelloWorHOAproject ____________
Qiectory Name:
I -H rijects ] [ browse... ]
Default Package:
[jjlGimar.oracle.apps.ak.helloI _____
Oracle Applications package names take the form
oracle. apps. <application_short_name>. <component>.[ <subcomponent >].webui
Example: oracle. apps, po. requisition .webui
Oracle Applications customers and partners package names take the form
<3rd party identifier>. oracle. apps. <application_short_name>.
<component> .[ <subcomponent>]. webui
Example: mycompany . oracle .apps . po. requisition .webui
[ ti*J rack j[ rzextj [ cancel ]

02Machine generated alternative text:
Qser Name:
eassword: ___________
Responsibility
pphcation Short Name: SYSADMIN
esponsibihty Key: SYSTEM_ADMINIS T PAT’ ER
Optiona( LL parameters:
E.g. &property 1 =value 1 ßeproperty2=value2
[ <ack jrr4ext ] [ irish ][ Cancel j
Oracle Applications Project Wizard - Step 3 of 3: Runtime Connection
Connection
DBC File Name:
\jdevhornejdev\dbcji1es\cecure\Vl5ION. dbc
11 Browse...J
FND_TOP=D :\p843 1482_Rl 2_GENERICjdevhome\dev\dbc _Ides
[ jelp ]

3. Set Run Options in OA Project Setting

Select Your Project in the Navigator and choose Project Properties

Select Oracle Applications > Run Options

Select OADeveloperMode and OADiagnostic, and move them to selected Options List

03

Machine generated alternative text:
Project Properties : D: \p84 31482_Rl 2_GEN ERIC\j devhome\.j dev\myp rojects\He floWo r IdOAP roject
Project Content Oracle Applications: Run Options
ADFm Settings
. . .‘ Use Çustom Settings
ADF View Settings -
‘ Use Project Settings
Available Options:
Ant
Business Components
$ Compiler
Dependencies
EJB Module
)ZEE Application
W Javadoc
35$’ Tag Libraries
Libraries
Oliline Database
Oracle Apphcations
Database Connection
Run Options
Runtime Connection
Run/Debug
Technology Scope
OA8ackßuttenTestMode .
OAPassivationTestMode
OADumpUIXTree
OAConnectionTestMode
Selected Options:
QADeveloperMode
‘OADiagnostic
LŠJ

4. Create Application Module AM.

4.1 File, New, Business Tier

4.2 Select ADF Business Components.

4.3 Application Module

04Machine generated alternative text:
ê New Gallery
Eilter By: LProject Technologies ‘ I
rcies:
El General
Applications
Connections
Deployment Descriptors
Deployment Profiles
Diagrams
Projects
5irnple Files
El Business Tier
Business Components
O %åleh Tiar
[tems:
2 Business Components From Tables
Business Components Diagram
; Application Module
Q3 Association
Business Components Deployment ProFiles
Business Components Project
a DeFault Data Model Components
¡Pj Domain
L Entity Object
View Link
C

5. Create a OA components Page

05

5.1 – Give it a proper name.

06

5.2 – Then, we have to add some UI components such as Label, InputText and one button.

07

Machine generated alternative text:
Helo World Window Title ‘ . ‘ Page
Hello World Page Header
Name
IGOI

We will create something like this.

6. Add a Controller

In order to add a controller, do same as the picture:

08

Machine generated alternative text:
HeNoWorldPG
EJ  PageLayoutRN
B LfjlriainF •‘--
ew
cri e Edit Region
Set New Controller,..
pageL Edit Controflet
S o  Cut CtrI.X
k  Copy CtrI-C
X Qelete Delete
Expand All
Collšpse All
Copy Region to jle...
Show OA References

09Machine generated alternative text:
New Controller
Eackage Name: [prajkumar . oracle .apps . ak. hello. webui
Çjass Name: HelloWorIdMainCO
Help _____________J Cancel

The code you need is something like this:

10

This is the final result:

12Machine generated alternative text:
inport oracle. apps. fnd. framework. OkException;
itt.. .t,
public class HelloVorIdMainCO extends OÀControllerlmpl
public static tinal String RCSD-”$Header$”;
public static tinai. boolean RCS_ID_PECOPDED =
Versionlnfo.recordclassVersion(RCS_IÐ, “%packagename%”);
itt
‘ Layout and page setup logic for a region.
@paran pageContext the current QA page context
t @paran webBean the web bean corresponding to the region
t,
public void processRequest(OAPageContext pageContext, OAblebBean webßean)
super.processRequest(pageContext, webBean);
)
itt
Procedure to handle form submissions for form elements in
a region.
@par&n pageContext the current OA page context
t @paran webBean the web bean corresponding to the region
ti
public void processFormRequest(OAPageContext pageContext, OATJebBean webBean)
super.processFormRequest(pageContext, webBean);
it (pageContext.getParasaeter(”Go”) = null)
(
String userContent = pageContext. getParameter (“HelloName”);
String message — “Hello, “ + userContent + “V’;
throw new OÀException(message, OAException.INFORMATION);
)
)
I


Introduction to OAF

Oracle Application Framework (OA Framework) is the Oracle Applications development and deployment platform for HTML-based business applications. OA Framework consists of a set of middle-tier runtime services and a design-time extension to Oracle JDeveloper called Oracle Applications Extension (OA Extension).

During the first few years after the Internet evolution, the software industry witnessed an influx of rapidly changing technologies. These technologies matured, yet there are still a myriad of low-level and complex technologies that are hard to learn and implement. Under these circumstances, OA Framework has emerged as an integrated platform for developing and deploying Oracle E-Business Suite HTML-based applications, leveraging technological advances without taking on associated complexity. Since its inception, OA Framework embraces the following principles:

  • End User Productivity: The shift from client-server to multi-tier deployments comes with many cost savings, but not without compromise. HTML-based applications started out very much like old mainframe terminals; actions on the client side resulted in a round trip to the middle tier. Over time, user interface interactivity improved. OA Framework has always kept user interface interactivity a top priority with features such as partial page rendering (PPR), hot keys, smart choice lists and auto-completion of fields with lists of values.
  • Enterprise-Grade Performance and Scalability: OA Framework has aggressive performance and scalability targets. Most Oracle E-Business Suite application pages have sub-second response times to most user interactions. It takes a bit longer the first time a page is accessed within the same Java Virtual Machine, but thereafter, most of the commonly needed information (such as user information) is cached in the middle tier, allowing faster response. Resources are conserved through a number of resource pooling mechanisms and the swapping of idle resource data between memory and database.
  • Developer Productivity:  OA Framework is designed around the simple Model-View-Controller (MVC) architecture. To shield application developers from costs associated with the rapidly changing technological landscape, Oracle has adopted a declarative flavor of the MVC architecture. Key building blocks of an application are defined in a descriptive manner using a simple JDeveloper user interface and then saved in an
    industry standard XML format. With OA Framework Release 11.5.10, Oracle is extending access and benefits of the OA Framework development environment to all Oracle E-Business Suite customers and partners. Customers and partners can leverage the proven OA Framework technology to add extensions to their Oracle E-Business Suite applications.
  • Application Customizability: Oracle is able to exploit its twenty plus years of experience in building and deploying business applications, to architect OA Framework with durable and economical customizations. Oracle has kept that goal in focus and produced a very compelling solution with plenty of flexibility to tailor the
    user interface (look-and-feel) and business logic. Thanks to the declarative and object oriented nature
    of OA Framework, application personalization and extensibility is readily available at a fraction of the
    industry startup cost and at a very minimal maintenance cost, if any.
  • Open Standards: Oracle continues to be a champion of industry standards and an active participant in the development 16 of several emerging standards. OA Framework technologies has driven several industry standards and has adopted several others as they were published. Several Oracle technology architects are
    active members on a number of standards drafting committees. OA Framework is J2EE based and features several industry standards such as XML, HTML, Java, JSP, SQL and Web Services.