Create Simple Hello Page in OAF
Step 1:- First we create Workspace and Project
1:-
Open JDeveloper
2:- Go to File -> New ->
General -> Workspace Configured for Oracle Application
3:- Create workspace
Click Ok button.
4:- Now create Project
Project name is
"HelloOAProject".
Default package
name is "XXC05.oracle.apps.fnd.hello".
5:- Then click
Next button.
6:- In Runtime Connection window
Click on next and then Finish.
Now Workspace and project are created.
Step 2:- Right
click on HelloOAProject -> New -> OA Components -> Page
Then Click on Ok Button.
Page Name:- HelloPG
Package :- XXC05.oracle.apps.fnd.hello.webui
Then Ok.
Now Page is create.
Step 3:-
Click on regin1
Set properties:
ID:-
PageLayoutRN
Region
Style:- pageLayout
AM
Definition:- oracle.apps.fnd.framework.toolbox.tutorial.server.HelloWorldAM
Window:- Hello
Window
Title:-
Hello Title
Step 4:- Right Click on PageLayoutRN
Create
new region
Set
properties:
ID:-
MainRN
Regoin
Layout:- messageComponentLayout
Step 5:- Right
Click on MainRN
Create
messageTextInput
Set
properties:-
ID:-
HelloName
Maimum length:-
100
Prompt:-
Name
Step 6:- Create
new CO
Right
click on PagelayoutRN
Create
New Controller from Set New Controller Option
import oracle.apps.fnd.framework.OAException;
Write that code in ProcessFormRequest
if
(pageContext.getParameter("Go") != null)
{
String userContent = pageContext.getParameter("HelloName");
String message = "Hello, " + userContent + "!";
throw new OAException(message, OAException.INFORMATION);
}
Step 7:- Right
click on MainRN
Create
messageLayout
Set
properties:
ID:-
ButtonLayout
Step 8:- Right
click on ButtonLayout
Create
New Item
Set
Properties:
ID:-
GO
Item
Style:- submitButton
Prompt:-
GO
Step 9:- Save our
work.
Now Page is Ready
Run this Page
Output:-
No comments:
Post a Comment