Quick Web Dev Using JDeveloper 10g
Quick Web Dev Using JDeveloper 10g
Development
2
Topics Covered - Agenda
• What is JDeveloper?
• What is ADF?
• Quick Web
Development
• Tips and Tricks
4
New Features as of 10g
5
New with 10.1.3
6
What is ADF?
7
Quick Web Development
• From table to
HTML with
navigation in no
time
• Full best practice
implementation
– Model – Business
components
– View – JSP / JSF
– Controller
8
5 Steps to Success
• Create a
– 1 – Create Application
– 2 – Create Business
Components
– 3 – Create Default Data
Model Components
– 4 –Create Pages
– 5 - Run the Application
9
Create a New Application
Step 1
• Right click on
Applications in
Navigator
• Click on “New
Application…”
10
Name the Application
• Name the
application
whatever you
wish
• Use the “Web
Application”
template
• Click OK
11
Model and ViewController
• 2 new projects
are
automatically
created under
the application
– Model
– ViewController
12
Create Business Components
Step 2
• Right click on
Model
• Click New
13
New Business Components
from Tables
• From the
gallery, choose
– “ADF Business
Components”
under “Business
Tier” Category
– Business
Components
from Tables
• Click OK
14
Pick Your Database
• Select a database
– Oracle
– Oracle Lite
– SQL Server
– SQL92
– DB2
15
Connecting to the DB
16
Database Connection Wizard
• 4 Steps
– Name the connection
– Specify a username and
password to connect to
– Specify the connection
parameters (i.e. the
database and machine
to connect to)
– Test the Connection
17
Create Business Components from
Tables Wizard
• Intro page
• Entity Objects
• Updatable View
Objects
• Read-only Objects
• Application Module
• Business
Components
Diagram
18
Create Default Data
Model Components
Step 3
19
Business Services are
Complete
• All of our
business
components have
now been created
– Entity Object
– View Object
– Application
Module
• It’s time to create
the GUI
application
20
Created Model
Entity Objects
21
Created Updatable View Objects
• The Application
Module is a
service object
that coordinates
view objects for
a specific task
(i.e. a form to
display the
employee data)
23
Create Pages
Step 4
• This is our
ViewController
section of the
MVC
• The controller
separates the
visual
representation of
web pages (view)
from their flow
and actions
24
Creating a Page
• Double-click
faces-config.xml
in the navigator
• Then click “JSF
Page” in the
Component
Palette
• Then click in the
diagram window
to place the Page
• Change the name
from “/emp.jsp”
(don’t remove the
forward slash)
25
Designing the JSF Page – View
26
Creating the Page
• By dragging and
dropping the
EmpView object
as an “ADF
Form” each
column from the
table(s) is
displayed
• Include
Navigation and
Submit Button
29
The Page
• JDeveloper creates
an initial page
layout for you
• You can edit this
page as you wish
30
Running the Application
Step 5
• Back to the
diagram
• Right-click on the
object and choose
Run
31
The Final Page
• The form is
complete and fully
functional!!!
– Insert, update,
delete, query
– HTML-based
• Full locking
• Easy to deploy
using the one-click
deployment
• How easy is that?
32
Adding a List of Values
• Delete the
DeptNo input
field
• Find the DeptNo
in the Data
Control Palette
• Select “ADF
Select One
Choice”
33
Associate LOV
• Can build a
static or
dynamic LOV
• Choose the LOV
table and joining
columns
34
Other Notables
• JDeveloper CSS
– Editing a CSS
• Can edit source or design
• A main menu is easy to create
• Built-in support for UML
• Can reverse engineer too
• Business Components Browser
– Right Click on Module, Test
35
How Much is All
This Functionality?
• It’s Free!
– June 22, 2005
• http://www.info
world.com/articl
e/05/06/22/HNora
clejdeveloperfre
e_1.html
36
Create a Many to Many
37
Great Reference
• http://www.oracle.com/technolo
gy/obe/ADF_tutorial_1013/ADF_t
utorial.pdf
• http://www.oracle.com/technolo
gy/products/adf/learnadf.html
38
Other Java Components
to Learn About
• Web Services
• XML Toolkit
• Wireless
• Tools written in Java
– OEM
– Discoverer
39
Other Components
to Consider
• Apex
• PL/SQL is still important
• Web Services / SOA
• Portal (integrates w/ Java apps)
• Collaboration (iMeeting, Files)
40
Conclusion
• Powerful product!
TUSC’s Vision
• Some great new
features Passionate
• Enhancements to about the
visual creating and Oracle
Technology
editing
• Application Developer
Framework is key Best in Economic
• Decreases the World engine
development time
• Reduced learning
curve
41
Questions and Answers
42
Where to Get More
Information
• metalink.oracle.com
• technet.oracle.com
• otn.oracle.com
• jakarta.apache.org
• www.tusc.com
• JDeveloper Help –
Tutorials are great
43
Special Thanks To…
44