grant ronald principal product manager

34

Upload: saeran

Post on 05-Feb-2016

31 views

Category:

Documents


0 download

DESCRIPTION

Grant Ronald Principal Product Manager. JDeveloper and ADF for Forms Developers: Taking it to the next level. Agenda. What you should know What this presentation is What this presentation isn’t! Getting into the code Extending the business logic Common “Forms trigger” points - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Grant Ronald Principal Product Manager
Page 2: Grant Ronald Principal Product Manager
Page 3: Grant Ronald Principal Product Manager

Grant RonaldPrincipal Product Manager

Page 4: Grant Ronald Principal Product Manager

JDeveloper and ADF for Forms Developers: Taking it to the next level

Page 5: Grant Ronald Principal Product Manager

Agenda

• What you should know• What this presentation is• What this presentation isn’t!

• Getting into the code• Extending the business logic

• Common “Forms trigger” points• Searching and querying• Calling a stored procedure from ADF BC

• Extending the user interface• Conditional page flow• Stacked canvases

Page 6: Grant Ronald Principal Product Manager

What You Should Know

• JDeveloper• ADF• ADF Business Components• JSF

Page 7: Grant Ronald Principal Product Manager

ADF Architecture

ADF Data Binding/ Data Control

Struts JSF

JSF/ADF FacesJSPADF Swing

Java Classes

EJB ADF Business

Components

WebServices

PortletsJSR-168WSRP

View

Controller

Model(JSR 227)

Business Services

Toplink

Relational Data XML Data Packaged AppsLegacy Data

Data Source

Metadata Services (MDS)

Page 8: Grant Ronald Principal Product Manager

ADF Business Components

Customer

Order

LineItem

OrdView

CustView

OrdView

OrdView

CustView

Application Module

View Objects

Entity Objects

Page 9: Grant Ronald Principal Product Manager

Getting into the code

• ADF BC doesn’t “generate code”• “default” XML definition

• Allows you to expose more and more of the implementation code

Page 10: Grant Ronald Principal Product Manager

Getting into the code

• Exposing code in the Entity Object

Page 11: Grant Ronald Principal Product Manager

Getting into the code

• Exposing code in the View Object

Page 12: Grant Ronald Principal Product Manager

Getting into the code

• Exposing code in the Application Module

Page 13: Grant Ronald Principal Product Manager

Common “Forms Trigger” points

• Validation• When-Validate-Item, When-Validate-Record

• Query • Pre-Query, Post-Query

• Transaction• Pre-Commit, On-Commit, Post-Commit• Pre-Insert, On-Insert, Post-Insert• Pre-Delete, On-Delete, Post-Delete

Page 14: Grant Ronald Principal Product Manager

Validation Triggers

• When-Validate-Item• When-Validate-Record

Page 15: Grant Ronald Principal Product Manager

Query Triggers

• Post-Query• Non-base table population• Running totals

• Pre-Query• Modify query

Page 16: Grant Ronald Principal Product Manager

Transactional Triggers

• Insert, Delete, Update• Pre-• Post-• On-

Page 17: Grant Ronald Principal Product Manager

The Best of the Rest

• When-Create-Record• When-Remove-Record• When-Button-Pressed (UI processing – later)

Page 18: Grant Ronald Principal Product Manager

D E M O N S T R A T I O N

Adding “trigger” code

Page 19: Grant Ronald Principal Product Manager

Searching and Querying

• Parameterize search form• ADF Search Form• ADF provides option to “ExecuteWithParams”

• Execute Query

Page 20: Grant Ronald Principal Product Manager

D E M O N S T R A T I O N

Adding search code

Page 21: Grant Ronald Principal Product Manager

D E M O N S T R A T I O N

Calling a stored procedure

Page 22: Grant Ronald Principal Product Manager

Next Level – UI Processing

• Auto Submit• Conditional UI processing

• Expression Language validation• Backing/Managed Beans

• “Stacked canvases”• Conditional page flow

Page 23: Grant Ronald Principal Product Manager

Auto Submit

• HTML UI validates only on POST• ADF Faces provides Partial Page Rendering• AutoSubmit submits page when field changed• PartialTrigger defines fields that re-act to changes

Page 24: Grant Ronald Principal Product Manager

D E M O N S T R A T I O N

Auto Submit

Page 25: Grant Ronald Principal Product Manager

Conditional UI Processing

• JSF Expression Language (EL)• Backing/Managed Beans

Page 26: Grant Ronald Principal Product Manager

Stacked Canvas

• <af:switcher>• Number of facets• Each facet is a “canvas”• Property to defines which

canvas to render

Page 27: Grant Ronald Principal Product Manager

D E M O N S T R A T I O N

Stacked Canvas

Page 28: Grant Ronald Principal Product Manager

Conditional Page Flow

• Button action returns a string• When-Button-Pressed

• Define page flow based on runtime criteria

Page 29: Grant Ronald Principal Product Manager

D E M O N S T R A T I O N

Conditional Page Flow

Page 30: Grant Ronald Principal Product Manager

Summary

• ADF provides Forms developers with• All your favorite triggers• Many of the common Forms concepts

• Stacked canvases• Defining search criteria• Conditional page flow

• And a lot more besides!

• JDeveloper and ADF continue to provide more and more productivity features for Forms developers

Page 31: Grant Ronald Principal Product Manager

otn.oracle.com

Join Over 4,500,000 Developers!

Free Software Downloads

otn.oracle.com/formsdesignerj2ee

Free Technical Advice

Page 32: Grant Ronald Principal Product Manager

AQ&

Page 33: Grant Ronald Principal Product Manager

Oracle ADFProductivity with Choice

Page 34: Grant Ronald Principal Product Manager